* upgrade to go1.19 and set go mem limit * create ocis-pkg memlimit package * use std automemlimit import Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * import automemlimit in every ocis service, drop ocis-pkg/memlimit package Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * bump go to 1.20 Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * drop unused config options and env vars Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * update all version numbers, add doc Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * fix lint Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * update bingo and mockery Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * bump golangci-lint Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * fix selector test Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * Update changelog/unreleased/enhancement-memlimit.md Co-authored-by: kobergj <juliankoberg@googlemail.com> --------- Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> Co-authored-by: Willy Kloucek <wkloucek@owncloud.com> Co-authored-by: kobergj <juliankoberg@googlemail.com>
1003 B
ocis
The ocis package contains the Infinite Scale runtime and the commands for the Infinite Scale cli.
Service registry
This package also configures the service registry which will be used to look up the service addresses. It defaults to mDNS. Keep that in mind when using systems with mDNS disabled by default (i.e. SUSE).
Available registries are:
- nats
- kubernetes
- etcd
- consul
- memory
- mdns (default)
To configure which registry to use, you have to set the environment variable MICRO_REGISTRY, and for all except memory and mdns you also have to set the registry address via MICRO_REGISTRY_ADDRESS.
etcd
To authenticate the connection to the etcd registry, you have to set ETCD_USERNAME and ETCD_PASSWORD.
Memory limits
oCIS will automatically set the go native GOMEMLIMIT to 0.9. To disable the limit set AUTOMEMEMLIMIT=off. For more information take a look at the official Guide to the Go Garbage Collector.