rexyai / RestRserve

R web API framework for building high-performance microservices and app backends
https://restrserve.org
271 stars 31 forks source link

Configuration settings? #176

Closed jds-amplify closed 3 years ago

jds-amplify commented 3 years ago

Hi,

How does one set the number of workers, and which host/ip the server binds to?

Thanks.

dselivanov commented 3 years ago

There is no option to specify number of workers - each new connection is getting assigned with new worker process. You will need to use a proxy/load balancer such as HAproxy to limit number of workers and force connection reuse.

which host/ip the server binds to?

See very first example in the readme:

backend$start(app, http_port = 8080)

Also I encourage to check https://github.com/rexyai/RestRserve/blob/master/CONTRIBUTING.md. If you have a question - welcome to gitter. This project uses issue tracker only for bug reports.