Hello, so when I try to start lakefs with `lakefs ...
# help
t
Hello, so when I try to start lakefs with
lakefs -c config.yaml run
, it fails to start with the following error
could not connect to DB: failed to connect to host: ...
. Image below contains more details These keeps reoccurring in the environment. Sometimes reboot the env solves it but is this a known issue and is the anything that can be done to curtail this permanently.
i
Hello @Temilola Onaneye. From the error msg it seems like a straight forward DB connection issue. Do you have any special settings in your environment that may affect the DB availability? You mentioned that "Sometimes reboot the env solves it..." - Could you specify a bit more about your env?
I've been pointed out to the fact that lakeFS uses a connection pool that might cause postgres to misbehave. Maybe you can try and limit the size of this pool using
database.max_open_connections
and
database.max_idle_connections
in your
config.yaml
file. For further explanation of these configuration keys and other options, you can look out our configuration reference https://docs.lakefs.io/reference/configuration.html
t
Okay Thanks @Itai David, would check this out
👍 1
Sometimes, whenever we reboot the VM or server. it works. That's what I meant about rebooting our environment
@Sadiq