can the number of clients be configured?
# help
a
can the number of clients be configured?
d
Postgres server
max_connections
setting?
a
thanks that did it!
now i'm hitting the limitation of
"error":"read: connection reset by peer"
probably because of too many concurrent requests
is that a setting that we can tweak too?
d
a
this doesn't seem to be related to SQL storage.
more to do with HTTP/TCP connections
d
Cerbos uses a connection pool when connecting to a database. You can configure the connection pool settings by adding a
connPool
section to the driver configuration.
I suggest you to tweak
maxIdle
setting
a
ok let me try that
that didn't have any effect. It's definitely related to too many HTTP connections to the API
the server is just dropping the TCP connection
d
If Postgres drops TCP connections then can you please try
tcp_keepalives_idle
setting
a
its not Postgres dropping the connection. Its the Cerbos API that is dropping it now.
d
I see
a
bumping the connPool fixed one bottleneck at the DB level but now i'm reaching another bottleneck at the API
d
Now I got it. Thanks for the explanation.
Copy code
server:
  advanced:
    http:
         ...
    grpc:
         ...
This “advanced” section allow configuring settings of HTTP and GRPC connection. I think the relevant protocol setting is “MaxIdleConnsPerHost”, but it can’t be configured at this moment.
a
got it. thanks. we might be able to get around this by throttling at the load balancer.