Service Independent Envvars
The following environment variables are service independent. You will find the respective code in the ocis-pkg/ directory. See the Admin Documentation - Environment Variables with Special Scopes for a comprehensive list and explanation.
|
See the Environment Variables documentation for common and important details on envvars. |
Service Registry
This package configures the service registry which will be used to look up for example the service addresses.
Available registries are:
-
nats-js-kv (default)
-
memory
To configure which registry to use, you have to set the environment variable MICRO_REGISTRY, and for all except memory you also have to set the registry address via MICRO_REGISTRY_ADDRESS and other envvars.
Startup Related Envvars
These envvars define the startup of ocis and can for example add or remove services from the startup process such as OCIS_ADD_RUN_SERVICES.
Memory Limits
|
Note that this envvar is for development purposes only and not described in the admin docs. |
oCIS will automatically set the go native GOMEMLIMIT to 0.9. To disable the limit set AUTOMEMLIMIT=off. For more information take a look at the official Guide to the Go Garbage Collector.