You can add stream worker limits to protect your tenants from service downtime caused by abnormal race conditions and CPU usage in stream worker code. These limits are disabled by default.
The following limits are available for stream workers:
maxPublishedWorkers: If the specified number of stream workers is exceeded, this limit prevents further stream workers from publishing. This limit only applies at the time of publishing.
maxMemoryMBPerWorker: Restricts memory usage per stream worker by MB. Uses
maxWorkersMemoryMB: Restricts memory usage for all stream workers in the tenant by MB. Uses
maxWorkersCpuSecondsPerMinute: Restricts CPU usage for all stream workers in the tenant by number of seconds. Uses
maxWorkersThroughputInMBPerMinute: Restricts incoming throughput by MB. Uses
maxWorkersThroughputOutMBPerMinute: Restricts outgoing throughput by MB. Uses
If any set limits are breached, the stream worker is immediately unpublished.
To set or change stream worker limits:
- Log into an administrator account in the
- Click TENANTS and select the Platform Limits tab to access the limit options.
- In the Limits drop-down box, select CEP.
- Update the values and click Update Limits to confirm changes.