Limiting resource consumption

Hi,

Is there any way to set “max connections” or “max cpu usage” ?
Couchbase 6.6 community

Limit the number of connections where? From the client? In the server? Can you provde more information on the scenario or issue?

Connections from clients to the server.

maxHttpConnections - Client Settings for the Java SDK | Couchbase Docs

But - the most common issue with having many connections is applications not re-using the cluster object and not calling disconnect() when finished with the cluster object.

The best way to limit the cpu used by a client is to limit the number of concurrent requests - which can usually be done by the application. Just to pick some numbers - 100 concurrent requests is reasonable, 100,000 concurrent requests will have challenges.