Skip to content

Kernel fine-tuning to sustain load #40

@RaJiska

Description

@RaJiska

Hi,

I'd like to open a discussion regarding fck-nat used for a production-ready type of load. Currently the way it's configured might not be enough for such a load as I could not see kernel tweaking configuration in scripts. Unfortunately I am no expert in Kernel tweaking and am not aware of all the configurations that might be necessary, but here are a few that I can think of:

  • Kernel keeps track of active connections via conntrack, the conntrack table once filled might drop new connections:
    • nf_conntrack_max which governs the maximum number of tracked connections (and optionally nf_conntrack_buckets for performances)
    • nf_conntrack_tcp_timeout_* to a lower value than the default perhaps ?
  • Networking stack
    • tcp_wmem, tcp_rmem, udp_wmem, udp_rmem which should probably be increased so it can support a higher load
    • tcp_max_syn_backlog
  • Maximum number of file descriptors via fs.max-files which limit could be overflowed if there are too many connections

Perhaps some more could be added, but it'd be interesting to have different profiles available that might be used depending of the usage intended of fck-nat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions