Skip to content

Commit

Permalink
- increase gap between two deregistation from 10 to 60 minutes
Browse files Browse the repository at this point in the history
- use visorEntries endpoint on dmsg-monitor process, instead all entries (include dmsgweb, dmsghttp and etc.)
  • Loading branch information
mrpalide committed Feb 26, 2024
1 parent a98e7a5 commit c3dfca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/dmsg-monitor/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (

func init() {
RootCmd.Flags().StringVarP(&addr, "addr", "a", ":9080", "address to bind to.\033[0m")
RootCmd.Flags().DurationVarP(&sleepDeregistration, "sleep-deregistration", "s", 10, "Sleep time for derigstration process in minutes\033[0m")
RootCmd.Flags().DurationVarP(&sleepDeregistration, "sleep-deregistration", "s", 60, "Sleep time for derigstration process in minutes\033[0m")
RootCmd.Flags().IntVarP(&batchSize, "batchsize", "b", 20, "Batch size of deregistration\033[0m")
RootCmd.Flags().StringVarP(&confPath, "config", "c", "dmsg-monitor.json", "config file location.\033[0m")
RootCmd.Flags().StringVarP(&dmsgURL, "dmsg-url", "d", "", "url to dmsg data.\033[0m")
Expand Down
2 changes: 1 addition & 1 deletion pkg/dmsg-monitor/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (api *API) deregisterRequest(keys []string, rawReqURL, service string) erro
type clientList []string

func getClients(dmsgURL string) (data clientList, err error) {
res, err := http.Get(dmsgURL + "/dmsg-discovery/entries") //nolint
res, err := http.Get(dmsgURL + "/dmsg-discovery/visorEntries") //nolint

if err != nil {
return nil, err
Expand Down

0 comments on commit c3dfca9

Please sign in to comment.