Skip to content

On Reducing API Load

Sammy Libre edited this page Aug 2, 2016 · 1 revision

How To Reduce API Load

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.