Skip to content

Evaluate memory limits on the main dispenser process #30

@andyquinterom

Description

@andyquinterom

Consider adding a memory limit on the systemd service file.

[Unit]
Description=Dispenser
After=docker.service
BindsTo=docker.service
StartLimitIntervalSec=0
[Service]
MemoryMax=250M
Type=simple
Restart=always
RestartSec=1
User=dispenser
Environment="RUST_LOG=info"
ExecStart=/usr/local/bin/dispenser --config /opt/dispenser/dispenser.toml
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/opt/dispenser

[Install]
WantedBy=multi-user.target

Or adding another method to limit the memory usage of the service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions