Skip to content
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

mcs: support hotspot http interface in scheduling server #7184

Merged
merged 10 commits into from
Oct 16, 2023
7 changes: 6 additions & 1 deletion server/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func NewHandler(_ context.Context, svr *server.Server) (http.Handler, apiutil.AP
// "/schedulers", http.MethodGet
// "/schedulers/{name}", http.MethodPost
// "/schedulers/diagnostic/{name}", http.MethodGet
// “/hotspot/regions/read”, http.MethodGet
// “/hotspot/regions/write”, http.MethodGet
// “/hotspot/regions/history, http.MethodGet
// “/hotspot/stores”, http.MethodGet
// “/hotspot/buckets, http.MethodGet
lhy1024 marked this conversation as resolved.
Show resolved Hide resolved
// Following requests are **not** redirected:
// "/schedulers", http.MethodPost
// "/schedulers/{name}", http.MethodDelete
Expand All @@ -77,7 +82,7 @@ func NewHandler(_ context.Context, svr *server.Server) (http.Handler, apiutil.AP
prefix+"/hotspot",
scheapi.APIPathPrefix+"/hotspot",
mcs.SchedulingServiceName,
[]string{http.MethodPost, http.MethodGet, http.MethodDelete}),
[]string{http.MethodGet}),
// because the writing of all the meta information of the scheduling service is in the API server,
// we should not post and delete the scheduler directly in the scheduling service.
serverapi.MicroserviceRedirectRule(
Expand Down
Loading