Rate Limitation
Note
The requestLimits Helm values documented on this page are the
original static admission controls for SMC. As of SMC 3.15, they are
complemented by a YAML-driven load control surface under
loadControl. The chart automatically translates the
create, delete, and other tiers of requestLimits into the new
loadControl.rateLimit shape so that existing values files work
unchanged against the new admission implementation. Operators do not need to
migrate their values, but new deployments should prefer the
adaptive load control surface, which also supports
counter-based concurrency limits, CPU feedback, per-tier priority
shedding, and a Vegas concurrency auto-tuner.
requestLimits.upfRestart does not have a loadControl equivalent and
remains the only way to limit session teardowns during a User Plane
Gateway restart.
GPC can control the amount of SMC requests which are handled at a given time.
The incoming messages of each type (create, delete, or other) are processed at the specified rate (request / second). Any messages above that rate are queued, but messages that are queued for more than specified in the queueTime are rejected with the cause Resource not available. Larger queues (higher values of queueLen) accommodate larger or longer bursts, but the overload condition takes longer to detect by the SMC peer so the latency is increased.
Note
To decide how many requests of a certain request type to be handled, SMC requests must be decoded. Decoding consumes CPU cycles. It is possible to overload the decoding handlers by feeding them too many requests. If you experience such behaviour in production, you need to limit the incoming requests on a network level.