-
Notifications
You must be signed in to change notification settings - Fork 1.1k
On Reducing API Load
Sammy Libre edited this page Aug 2, 2016
·
1 revision
If you have a lot of miners and redis load is high, you can move web and API to a different server:
- Run writable redis slave for API
- Run API module separately
- Run API module on master redis node in
purgeOnly: true
mode
It's mandatory for redis slave to be writable, because you need to purge data there. Also you need to purge data on master node, this is why you have to run an API in purgeOnly
mode for master redis instance too.
Also useful if your web frontend requires some CF protection, this way you can protect it.
Redis writable slave is only required if your API is really overloaded, in other case better point api to master instance.