diff --git a/components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupInfrastructure.yml b/components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupInfrastructure.yml index e73ad689..102c3a0b 100644 --- a/components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupInfrastructure.yml +++ b/components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupInfrastructure.yml @@ -3,6 +3,10 @@ type: object required: - models properties: + provision: + oneOf: + - $ref: ./AutoScaleGroupProvision.yml + - type: "null" models: type: array items: diff --git a/components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupProvision.yml b/components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupProvision.yml new file mode 100644 index 00000000..b9615fdc --- /dev/null +++ b/components/schemas/infrastructure/auto-scale/groups/AutoScaleGroupProvision.yml @@ -0,0 +1,11 @@ +title: AutoScaleGroupProvision +type: object +properties: + features: + oneOf: + - $ref: ../../servers/ServerFeatures.yml + - type: "null" + constraints: + oneOf: + - $ref: ../../servers/ServerConstraints.yml + - type: "null" \ No newline at end of file diff --git a/components/schemas/infrastructure/servers/ServerConstraints.yml b/components/schemas/infrastructure/servers/ServerConstraints.yml index 3b3f8531..e5ff81ef 100644 --- a/components/schemas/infrastructure/servers/ServerConstraints.yml +++ b/components/schemas/infrastructure/servers/ServerConstraints.yml @@ -27,3 +27,8 @@ properties: overcommit: type: boolean description: A boolean where true means - allow twice the normal amount of CPU shares to be allocated to containers deployed to this server. + overcommit_multiple: + type: + - integer + - "null" + description: An integer that describes the capability of a server to overcommit shares. This will allow more containers to run on a given server based on the servers available CPU. 1 thread (or vCPU) = 10 shares. diff --git a/platform/paths/infrastructure/servers/server.yml b/platform/paths/infrastructure/servers/server.yml index 4493b2f9..b20725a3 100644 --- a/platform/paths/infrastructure/servers/server.yml +++ b/platform/paths/infrastructure/servers/server.yml @@ -119,7 +119,7 @@ patch: type: - integer - "null" - description: An integer that describes the capability of a server to overcommit shares. This will allow more containers to run on a given server based on the servers available CPU cores. 1 CPU core = 10 shares by default. + description: An integer that describes the capability of a server to overcommit shares. This will allow more containers to run on a given server based on the servers available CPU. 1 thread (or vCPU) = 10 shares. responses: 200: description: Returns a Server.