Running a single container
If your use case requires running a single container for a limited period of time (e.g. a batch job), it is possible to start the container directly using the docker CLI. When you do so, it is possible to leverage the Docker restart option to allow for your task to run to completion even in case of failures. Use this command to start the container with restarts enabled:Docker Command
Docker Command
/healthz route. Set your code to call the /healthz route every 5 seconds until the route is responding with status code 200. The container is now ready to receive traffic on endpoints like /process/text.
In most environments, the container is ready to receive traffic in less than a minute.
Concurrency
For optimum performance, please use the concurrency settings given in Prerequisites and System Requirements for your chosen hardware setup. Note that concurrency currently does not apply to batch requests, i.e. sending 10 batches of 100 examples is more performant than sending a single batches of 1000 examples. This behaviour will be improved in an upcoming release.Metrics
We provide Prometheus metrics for the containers which are available via/metrics route. The metrics are accessible via endpoint only, they are not pushed or published to any remote server.
The metrics are provided in a plain text format, and you can view them directly, for example:
Command
Using the Limina container as a base image
You can use the Limina image as a base image in a Dockerfile if that fits better with your workflow. However, in order to make sure that the processes in the base image works correctly:- The Limina container uses various ports in the
8080-8090range. Please use a port outside this range for your process. - The Limina container has an entrypoint script that initializes various systems and overriding the
ENTRYPOINTkeyword might result in unexpected behaviour. Therefore, it is advised to not override theENTRYPOINTof the base image. However, if you still would like to override it, please make sure to run the entrypoint point script that is located under the/app/docker/entrypoint.dfolder.