go-zero
go-zero copied to clipboard
Does the gateway provide a capability to add upstream dynamically?
We need to dynamically add upstream to an already running gateway service, without modifying the configuration file and restarting the gateway.
add this upstream configuration
Right now, it's better to restart the gateway.
But it's a good idea to reload the config on the fly. I might work on it later.
Right now, it's better to restart the gateway.
But it's a good idea to reload the config on the fly. I might work on it later.
Thank you for your reply and look forward to the implementation of this feature.
We need to dynamically add upstream to an already running gateway service, without modifying the configuration file and restarting the gateway.
Without changing the config file, how to add upstreams?
We need to dynamically add upstream to an already running gateway service, without modifying the configuration file and restarting the gateway.
Without changing the config file, how to add upstreams?
Detecting changes to the configuration file is actually enough. I was thinking about having an api to dynamically modify upstreams after run, but that would be too complicated and uncontrollable.
Same Concern. It is also acceptable to send a signal to trigger the update, such as sending SIGUSER2, or the gateway provides a admin port. Maybe the best way is to store the configuration in a configuration system, such as Nacos, etc.
Same Concern. It is also acceptable to send a signal to trigger the update, such as sending SIGUSER2, or the gateway provides a admin port. Maybe the best way is to store the configuration in a configuration system, such as Nacos, etc.
In addition to "add", "delete" and "modify" also need to be supported.
Look forward to progress.