-
Notifications
You must be signed in to change notification settings - Fork 97
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
WalHeartBeat across peers #708
Conversation
flow/cmd/api.go
Outdated
@@ -58,6 +62,27 @@ func setupGRPCGatewayServer(args *APIServerParams) (*http.Server, error) { | |||
return server, nil | |||
} | |||
|
|||
func KillExistingHeartbeatFlows(ctx context.Context, tc client.Client, namespace string) error { |
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.
this can be private method
flow/activities/flowable.go
Outdated
@@ -659,31 +663,79 @@ func (a *FlowableActivity) DropFlow(ctx context.Context, config *protos.Shutdown | |||
return nil | |||
} | |||
|
|||
func (a *FlowableActivity) SendWALHeartbeat(ctx context.Context, config *protos.FlowConnectionConfigs) error { | |||
srcConn, err := connectors.GetCDCPullConnector(ctx, config.Source) | |||
func GetPostgresPeerConfigs(ctx context.Context) ([]*protos.PostgresConfig, error) { |
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.
this can be private.
flow/activities/flowable.go
Outdated
} | ||
defer catalogPool.Close() | ||
|
||
optionRows, err := catalogPool.Query(ctx, "SELECT options FROM peers WHERE type=3") |
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.
is there a way to get 3 from proto like proto.Postgres.Type or something?
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.
left some minor comments but overall lgtm
6656118
to
b1c4256
Compare
Redesign WAL Heartbeat Logic
HeartbeatFlowWorkflow
.Other: Fixes a typo in UI:
snapshow
->snapshot