dwellir-public / polkadot-operator

The Polkadot Juju operator/charm
Apache License 2.0
1 stars 1 forks source link

Improve upgrade process to reduce number of restarts #66

Closed ZeeshanM96 closed 2 months ago

ZeeshanM96 commented 4 months ago

Description:

Right now, in the polkadot-operator, if one changes two configs at the same time that both include a service restart, e.g. binary-urland wasm-runtime-url, the service will restart twice. This takes extra time and is also unnecessary, there is no benefit to restarting in between the two config changes. Two proposed changes to the charm. Two proposed changes to the charm:

Screenshot:

Restart

ZeeshanM96 commented 4 months ago

Two comments:

  • Maybe you've already seen it, maybe not, but similar functionality is implemented in the zkEVM charm in case you want to check it out for inspiration.
  • utils.install_binary(self.config, service_args_obj.chain_name) also contains stop_service, so there's some more stuff to adjust there.

utils.install_binary does contain stop-service, but aren't we concerned about start_service, aim is to stop the service from starting when a service args are changed. Please correct me if I am wrong!

jakobilobi commented 2 months ago

@Maharacha @jonathanudd

I say we close this and take another stab at another time, if we feel the need for it. Agree?

jonathanudd commented 2 months ago

@Maharacha @jonathanudd

I say we close this and take another stab at another time, if we feel the need for it. Agree?

Sounds good. The card will still be there for later :)

Maharacha commented 2 months ago

@Maharacha @jonathanudd

I say we close this and take another stab at another time, if we feel the need for it. Agree?

Agree. It was not close to a working solution anyway.