Environment Variables
PORT
The port to listen on. Defaults to 3003
.
PROMETHEUS_EXPORTER_PORT
The port to listen on for Prometheus metrics. Defaults to 3004
.
Added in rizio/code-interpreter:0.6.0
RIZA_LICENSE_KEY
The license key to validate on startup. If the license is invalid, riza serve
will return an error.
RIZA_API_KEY
The API key to use when talking to the Riza API. This is only necessary when using
custom runtimes.
RIZA_SERVE_CONCURRENCY
The maximum number of concurrent requests to handle. When set, reqeusts will be
processed in the order in which they’re receieved. By default there is no limit
set.
TOKIO_WORKER_THREADS
The number of Tokio “core threads” to spawn.
See https://docs.rs/tokio/latest/tokio/#cpu-bound-tasks-and-blocking-code for
more information.
RIZA_SERVE_WORKERS
The number of Riza worker threads to run, for handling JavaScript executions
in a custom runtime. Defaults to TOKIO_WORKER_THREADS
divided
by two.
Only applies when running Riza with a JavaScript custom runtime
rizio/code-interpreter:0.4.6
RIZA_SERVE_QUEUE_SIZE
The size of the work queue shared among workers. Defaults to the number of
workers.
Only applies when running Riza with a JavaScript custom runtime
rizio/code-interpreter:0.5.0
RIZA_SERVE_QUEUE_SEND_TIMEOUT
The amount of time (in seconds) to wait for an item to be added to the work
queue. If the timeout is reached, the server will send a 429 Too Many Requests
response. If set to 0, return 429 Too Many Requests
if the queue is full.
Defaults to 5 (seconds).
Only applies when running Riza with a JavaScript custom runtime
rizio/code-interpreter:0.5.0
Liveness and Readiness Endpoints
Use the/livez
and /readyz
endpoints for liveness and readiness
probes
when deploying into a Kubernetes cluster.
Prometheus Metrics Endpoint
The/metrics
endpoint responds to requests with the following metrics:
http_requests_total
A counter for each HTTP request, grouped by {method, path, status}
.