Skip to content

Maximum number of Postgres clients per node? #12901

Answered by mfussenegger
robd003 asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on your data set and query workload. Overall connections have a low footprint.
Opposed to PostgreSQL which spawns a sub-process per connection, CrateDB uses an event-loop model which should allow for far more connections.

There is some per connection book-keeping, but that should be in the order of a few hundred bytes to a couple of kBs per connection.
Information like prepared statements are also per connection, so that could affect memory usage too if you're using a lot of them.

And connections require file-descriptors/sockets, but the bootstrap checks would already warn/error if there are low system limits active (See https://crate.io/docs/crate/howtos/en/latest/admin/bootst…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robd003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants