Closed yevsafronov closed 2 years ago
- We need to display the current batch size for each table in the control server ui. The reason we display for each table is because in the future we might automatically change them.
should this be a new issue?
Lastly, this architecture is fine for now. That said, there are some possibility that we might automatically adjust the batch size of Ghostferry via a simple algorithm. I'm not quite sure how the pointer to batch size would interact with that. We should probably at least think about this a bit and decide to ignore it until we actually implement that feature (maybe leave a comment in this PR about it).
we might want to add a parameter to control the way we handle batch size, i.e MANUAL
vs AUTOMATIC
I think we should add the display in this issue. Should only be a few lines of code? Also since we're making it updatable, we should display it somewhere so we know the update is successful at least.
I think we should add the display in this issue. Should only be a few lines of code? Also since we're making it updatable, we should display it somewhere so we know the update is successful at least.
added batch size
to to the ui
Re: https://github.com/Shopify/ghostferry/issues/265
As part of the above issue I was looking into a way to implement dynamic configuration via the control server. This PR adds a new endpoint to the
ControlServer
which allows dynamic reconfiguration, currently it only supports updating theDataIterationBatchSize
value.Another important change is the move of
ControlServer
intoFerry
as an optional component, disabled by default and enabled for copydb. This will allow to use the dynamic reconfiguration and otherControlServer
endpoints outside of copydb.