Replication

Polyaxon supports replication of the api and workers.

Services Replication

To replicate the platform or one of the services (api or workers), you just need to modify replicas field of that service you want to scale.

For example to replicate api, your config yaml file should include:

api:
  replicas: 3

This will create 3 pods for api to handle the traffic coming from the CLI, Dashboard, or REST API.

The easiest way to replicate the platform is increase the replicas of all Polyaxon's services:

api:
  replicas: 3

scheduler:
  replicas: 3

hpsearch:
  replicas: 3

eventsHandlers:
  replicas: 3

eventMonitors:
  replicas: 3

Resources' limit

By default Polyaxon does not set limits on the resources for the core components it deploys, in order to enable the resources limits, your config yaml file should include:

limitResources: True

This will force the Polyaxon to set the resources limits on all services if they include the limits subsections.