-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APPS-8711: container termination controls (#873)
* APPS-8711: container termination controls * remove specification/resources/apps/apps_get_database_connection_details.yml
- Loading branch information
1 parent
20b5ea6
commit d8d3901
Showing
7 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,4 +57,4 @@ properties: | |
minimum: 1 | ||
maximum: 100 | ||
default: 80 | ||
example: 75 | ||
example: 75 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
specification/resources/apps/models/app_job_spec_termination.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
type: object | ||
properties: | ||
grace_period_seconds: | ||
type: integer | ||
format: int32 | ||
description: The number of seconds to wait between sending a TERM signal to a container and issuing | ||
a KILL which causes immediate shutdown. (Default 120) | ||
example: 120 | ||
maximum: 600 | ||
minimum: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,8 @@ allOf: | |
items: | ||
$ref: app_route_spec.yml | ||
|
||
termination: | ||
$ref: app_service_spec_termination.yml | ||
|
||
required: | ||
- name |
20 changes: 20 additions & 0 deletions
20
specification/resources/apps/models/app_service_spec_termination.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
type: object | ||
properties: | ||
drain_seconds: | ||
type: integer | ||
format: int32 | ||
description: The number of seconds to wait between selecting a container instance | ||
for termination and issuing the TERM signal. Selecting a container instance for | ||
termination begins an asynchronous drain of new requests on upstream load-balancers. (Default 15) | ||
example: 15 | ||
maximum: 110 | ||
minimum: 1 | ||
|
||
grace_period_seconds: | ||
type: integer | ||
format: int32 | ||
description: The number of seconds to wait between sending a TERM signal to a container and issuing | ||
a KILL which causes immediate shutdown. (Default 120) | ||
example: 120 | ||
maximum: 600 | ||
minimum: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
allOf: | ||
- $ref: app_component_base.yml | ||
- $ref: app_component_instance_base.yml | ||
|
||
- type: object | ||
properties: | ||
termination: | ||
$ref: app_worker_spec_termination.yml | ||
required: | ||
- name | ||
|
10 changes: 10 additions & 0 deletions
10
specification/resources/apps/models/app_worker_spec_termination.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
type: object | ||
properties: | ||
grace_period_seconds: | ||
type: integer | ||
format: int32 | ||
description: The number of seconds to wait between sending a TERM signal to a container and issuing | ||
a KILL which causes immediate shutdown. (Default 120) | ||
example: 120 | ||
maximum: 600 | ||
minimum: 1 |