cfg_tune
Generate a capacity-tuned override snippet for opensips.cfg by answering five questions about your workload, providing paste-ready lines with explanatory comments.
Instructions
Generate a PGTune-style capacity-tuned override snippet.
Ask the user five questions about their workload, return a small
paste-ready set of overrides with a # why: comment on every line.
Intended to be merged into an existing opensips.cfg — it is NOT a
full configuration.
Parameters
role:
One of edge, registrar, lb, b2bua, sbc,
presence, generic.
cpu_cores:
Physical or allocated CPU cores.
memory_mb:
RAM in megabytes available to OpenSIPS.
cps:
Expected peak calls per second.
concurrent_calls:
Expected peak concurrent calls.
tls:
True if TLS / WSS traffic is significant.
nat:
True if the deployment handles heavy NAT'd clients.
ha:
True if deployed active-active / clustered.
registrations:
Expected concurrent registered AoRs (registrar role).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | generic | |
| cpu_cores | No | ||
| memory_mb | No | ||
| cps | No | ||
| concurrent_calls | No | ||
| tls | No | ||
| nat | No | ||
| ha | No | ||
| registrations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||