-
Notifications
You must be signed in to change notification settings - Fork 73
enable the system callback url #924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,13 +47,13 @@ import ( | |
| "go.temporal.io/server/common/metrics" | ||
| sqliteplugin "go.temporal.io/server/common/persistence/sql/sqlplugin/sqlite" | ||
| "go.temporal.io/server/common/primitives" | ||
| "go.temporal.io/server/components/callbacks" | ||
| "go.temporal.io/server/components/nexusoperations" | ||
| "go.temporal.io/server/schema/sqlite" | ||
| sqliteschema "go.temporal.io/server/schema/sqlite" | ||
| "go.temporal.io/server/temporal" | ||
| "google.golang.org/grpc" | ||
| "gopkg.in/yaml.v3" | ||
| "go.temporal.io/server/components/callbacks" | ||
| ) | ||
|
|
||
| const ( | ||
|
|
@@ -241,19 +241,10 @@ func (s *StartOptions) buildServerOptions() ([]temporal.ServerOption, *slog.Leve | |
| dynConf[dynamicconfig.HistoryCacheHostLevelMaxSize.Key()] = 8096 | ||
| // Up default visibility RPS | ||
| dynConf[dynamicconfig.FrontendMaxNamespaceVisibilityRPSPerInstance.Key()] = 100 | ||
| // NOTE that the URL scheme is fixed to HTTP since the dev server doesn't support TLS at the time of writing. | ||
| dynConf[nexusoperations.CallbackURLTemplate.Key()] = fmt.Sprintf( | ||
| "http://%s:%d/namespaces/{{.NamespaceName}}/nexus/callback", MaybeEscapeIPv6(s.FrontendIP), s.FrontendHTTPPort) | ||
| dynConf[callbacks.AllowedAddresses.Key()] = []struct { | ||
| Pattern string | ||
| AllowInsecure bool | ||
| }{ | ||
| { | ||
| Pattern: fmt.Sprintf("%s:%d", MaybeEscapeIPv6(s.FrontendIP), s.FrontendHTTPPort), | ||
| AllowInsecure: true, | ||
| }, | ||
| } | ||
| // Enable the system callback URL for worker targets. | ||
| dynConf[nexusoperations.UseSystemCallbackURL.Key()] = true | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am curious about these Nexus dyn configs in general. Why can't a user be asked to configure these dynamic configs the same way they would if configuring any other self-hosted server? Why does other self-hosted environment not have these defaults and why must this self-hosted environment uniquely have these defaults here? The caching and RPC limit updates make sense for local dev server, but feature defaults to not IMO. Our self-hosted dyn config requirements should be the same regardless of whether it's dev server self-hosted, docker self-hosted, binary self-hosted, etc.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OSS server v1.31 will have this toggle enabled by default and we can remove the URL templates here. After v1.31 no dc overrides are required for nexus.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just removed 2 other DCs.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We didn't want users to have to struggle to enable Nexus. That's why these configs were here in the first place. Starting server 1.31, Nexus will work OOTB with no dynamic config overrides.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also note that since the HTTP port is randomly allocated by default (still considered experimental), it was deemed to difficult to configure this for a user.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
But we clearly did want that when we chose the general Temporal server defaults. Users should get consistent feature opt-in/default behavior across all forms of self-hosted server (whether dev server, docker container, helm chart, release downloaded from https://github.com/temporalio/temporal/releases, etc). |
||
|
|
||
| dynConf[callbacks.AllowedAddresses.Key()] = true | ||
| // Dynamic config if set | ||
| for k, v := range s.DynamicConfigValues { | ||
| dynConf[dynamicconfig.MakeKey(k)] = v | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.