docker-twemproxy icon indicating copy to clipboard operation
docker-twemproxy copied to clipboard

Customizing twemproxy verbosity level?

Open archon810 opened this issue 9 months ago • 1 comments

We can customize params passed to twemproxy when it starts on raw metal like so:

/lib/systemd/system/twemproxy.service:

...
ExecStart=/usr/sbin/nutcracker -v 4 --pid-file /var/run/twemproxy/twemproxy.pid -c /etc/twemproxy/twemproxy.yml -o /var/log/twemproxy.log
...

This uses verbosity of 4 and prevents mass spamming of every value being accessed in twemproxy's logs.

How do we do this in the docker environment though? Can you please modify the readme with the relevant instructions?

Thank you.

archon810 avatar Apr 14 '25 23:04 archon810

I fixed this in our case by adding the following line to our docker-compose.yml:

    command: ["nutcracker", "-v", "4", "-c", "/etc/nutcracker.conf"]

archon810 avatar Apr 14 '25 23:04 archon810