pass registration cfg to micro ocdav
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -2,5 +2,6 @@ Bugfix: Repair nats-js-kv registry
|
|||||||
|
|
||||||
The registry would always send traffic to only one pod. This is now fixed and load should be spread evenly. Also implements watcher method so the cache can use it.
|
The registry would always send traffic to only one pod. This is now fixed and load should be spread evenly. Also implements watcher method so the cache can use it.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/9662
|
||||||
https://github.com/owncloud/ocis/pull/9654
|
https://github.com/owncloud/ocis/pull/9654
|
||||||
https://github.com/owncloud/ocis/pull/9620
|
https://github.com/owncloud/ocis/pull/9620
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import (
|
|||||||
"github.com/oklog/run"
|
"github.com/oklog/run"
|
||||||
"github.com/owncloud/ocis/v2/ocis-pkg/broker"
|
"github.com/owncloud/ocis/v2/ocis-pkg/broker"
|
||||||
"github.com/owncloud/ocis/v2/ocis-pkg/config/configlog"
|
"github.com/owncloud/ocis/v2/ocis-pkg/config/configlog"
|
||||||
|
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
|
||||||
"github.com/owncloud/ocis/v2/ocis-pkg/tracing"
|
"github.com/owncloud/ocis/v2/ocis-pkg/tracing"
|
||||||
"github.com/owncloud/ocis/v2/ocis-pkg/version"
|
"github.com/owncloud/ocis/v2/ocis-pkg/version"
|
||||||
"github.com/owncloud/ocis/v2/services/ocdav/pkg/config"
|
"github.com/owncloud/ocis/v2/services/ocdav/pkg/config"
|
||||||
@@ -87,6 +88,8 @@ func Server(cfg *config.Config) *cli.Command {
|
|||||||
ocdav.MetricsNamespace("ocis"),
|
ocdav.MetricsNamespace("ocis"),
|
||||||
ocdav.Tracing("Adding these strings is a workaround for ->", "https://github.com/cs3org/reva/issues/4131"),
|
ocdav.Tracing("Adding these strings is a workaround for ->", "https://github.com/cs3org/reva/issues/4131"),
|
||||||
ocdav.WithTraceProvider(traceProvider),
|
ocdav.WithTraceProvider(traceProvider),
|
||||||
|
ocdav.RegisterTTL(registry.GetRegisterTTL()),
|
||||||
|
ocdav.RegisterInterval(registry.GetRegisterInterval()),
|
||||||
}
|
}
|
||||||
|
|
||||||
s, err := ocdav.Service(opts...)
|
s, err := ocdav.Service(opts...)
|
||||||
|
|||||||
Reference in New Issue
Block a user