diff --git a/enterprise/wsproxy/wsproxysdk/wsproxysdk.go b/enterprise/wsproxy/wsproxysdk/wsproxysdk.go index 34b63ce642..d33df7bffa 100644 --- a/enterprise/wsproxy/wsproxysdk/wsproxysdk.go +++ b/enterprise/wsproxy/wsproxysdk/wsproxysdk.go @@ -313,8 +313,11 @@ func (l *RegisterWorkspaceProxyLoop) register(ctx context.Context) (RegisterWork // Start starts the proxy registration loop. The provided context is only used // for the initial registration. Use Close() to stop. func (l *RegisterWorkspaceProxyLoop) Start(ctx context.Context) (RegisterWorkspaceProxyResponse, error) { + // Workspace proxy re-registrations should be on the same interval as the rest of the replicasync. + // If they differ significantly it can cause problems with meshing. if l.opts.Interval == 0 { - l.opts.Interval = 15 * time.Second + // Default to the same interval as the rest of the replicasync. + l.opts.Interval = 5 * time.Second } if l.opts.MaxFailureCount == 0 { l.opts.MaxFailureCount = 10