Skip to content

The ServerScalingService controls the deployment of more servers

License

Notifications You must be signed in to change notification settings

Exorath/ServerScalingService

Repository files navigation

ServerScalingService

The ServerScalingService controls the deployment of more servers of specific types, to ensure there is always enough capacity. Right now it communicates only with the kubernetes backend but it may start to communicate with Openshift as well to deploy more nodes.

Endpoints

/games/register [POST]:

Updates a game type

Request:

The name should must the gameId!

{
"name": "mg_gw",
"image": "exorath/mg_gw:0.0.1",
"terminationGracePeriodSeconds": 1000,
"env": {
  "key1": "value1",
  "key2": "value2"
},
"labels": {}
}

Response:

{
"success": true
}

/bungee [POST]:

Updates the bungee spec

NOTICE: THE BUNGEE ENDPOINT IS CURRENTLY NOT IN USE!!!

Request:

{
"image": "exorath/bungee:0.0.1",
"terminationGracePeriodSeconds": 1000,
"env": {
  "key1": "value1",
  "key2": "value2"
},
"labels": {}
}

Response:

{
"success": true
}

Environment

Name Value
MONGO_URI {mongo_uri}
DB_NAME {db name to store data}
CONNECTOR_SERVICE_ADDRESS {ConnectorService ip:port}
KUBERNETES_ADDRESS {Kubernetes url}

About

The ServerScalingService controls the deployment of more servers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages