Evgeny created MESOS-10121: ------------------------------ Summary: stdout/stderr not rotating Key: MESOS-10121 URL: https://issues.apache.org/jira/browse/MESOS-10121 Project: Mesos Issue Type: Task Reporter: Evgeny
Hello, i am trying to rotate my stdout/stderr files in Mesos containers. Starting mesos-slave: {code} docker run -d <options> mesos-slave:1.4 --container_logger=org_apache_mesos_LogrotateContainerLogger --modules=/var/tmp/mesos/mesos-slave-modules.json {code} config for rotation: {code} cat /var/tmp/mesos/mesos-slave-modules.json: { "libraries": [{ "file": "/usr/lib/liblogrotate_container_logger.so", "modules": [{ "name": "org_apache_mesos_LogrotateContainerLogger", "parameters": [{ "key": "launcher_dir", "value": "/usr/libexec/mesos" }, { "key": "logrotate_path", "value": "/usr/sbin/logrotate" }, { "key": "max_stdout_size", "value": "10240MB" }, { "key": "max_stderr_size", "value": "10240MB" }, { "key": "logrotate_stdout_options", "value": "rotate 5\nmissingok\nnotifempty\ncompress\nnomail\n" }, { "key": "logrotate_stderr_options", "value": "rotate 5\nmissingok\nnotifempty\ncompress\nnomail\n" }] }] }] } {code} mesos-logrotate-logger is running for all containers: {code} root 733 0.1 0.0 841724 25020 ? Ssl Apr19 4:02 mesos-logrotate-logger --help=false --log_filename=/var/tmp/mesos/slaves/c931deec-e65a-4362-9c6f-d4b278f52f5b-S0/frameworks/cb0d4342-fcf5-4e6d-abf2-764b8c5b8cf3-0000/executors/gateway.478dac1a-8276-11ea-b32f-0242ac110002/runs/60bc8179-3051-4214-8902-7d9747f1713e/stdout --logrotate_options=rotate 5 missingok notifempty compress nomail --logrotate_path=/usr/sbin/logrotate --max_size=10GB --user=root ... {code} limit 10Gb is reached: {code} ls -lh /var/tmp/mesos/slaves/c931deec-e65a-4362-9c6f-d4b278f52f5b-S0/frameworks/cb0d4342-fcf5-4e6d-abf2-764b8c5b8cf3-0000/executors/gateway.478dac1a-8276-11ea-b32f-0242ac110002/runs/60bc8179-3051-4214-8902-7d9747f1713e/stdout -rw-r--r-- 1 root root 12G Apr 21 10:57 /var/tmp/mesos/slaves/c931deec-e65a-4362-9c6f-d4b278f52f5b-S0/frameworks/cb0d4342-fcf5-4e6d-abf2-764b8c5b8cf3-0000/executors/gateway.478dac1a-8276-11ea-b32f-0242ac110002/runs/60bc8179-3051-4214-8902-7d9747f1713e/stdout {code} logrotate is available (--logrotate_path=/usr/sbin/logrotate). But rotating does not occur. Cant find a problem. Any tips pls? -- This message was sent by Atlassian Jira (v8.3.4#803005)