Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
D2iQ-65350: Add configureable logrotate options. (#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiwalyajoshi authored Apr 9, 2020
1 parent 27fdd8d commit 58657da
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frameworks/helloworld/universe/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@
],
"default": "INFO"
},
"logrotate_options": {
"description": "The logrotate options for the DC/OS service.",
"type": "object",
"properties": {
"stdout_max_size":{
"description": "Logrotate stdout max size. Sizes must be an integer of less than 2^64 and must be suffixed with a unit such as B (bytes), KB, MB, GB, or TB. There should be no whitespace between the integer and unit.",
"type": "string",
"default":"2MB"
},
"stderr_max_size":{
"description": "Logrotate stderr max size. Sizes must be an integer of less than 2^64 and must be suffixed with a unit such as B (bytes), KB, MB, GB, or TB. There should be no whitespace between the integer and unit.",
"type": "string",
"default":"2MB"
}
}
},
"region": {
"description": "The region that the service's tasks should run in.",
"type": "string",
Expand Down
3 changes: 3 additions & 0 deletions frameworks/helloworld/universe/marathon.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
"SERVICE_TLD": "{{service.custom_service_tld}}",
{{/service.custom_service_tld}}

"CONTAINER_LOGGER_LOGROTATE_MAX_STDOUT_SIZE": "{{service.logrotate_options.stdout_max_size}}",
"CONTAINER_LOGGER_LOGROTATE_MAX_STDERR_SIZE": "{{service.logrotate_options.stderr_max_size}}",

"KEYSTORE_APP_VERSION": "{{tls.keystore_app_version}}",
"NGINX_CONTAINER_VERSION": "{{tls.nginx_container_version}}",
"TEST_BOOLEAN": "{{service.test_boolean}}",
Expand Down

0 comments on commit 58657da

Please sign in to comment.