infiniflow / infiniflow/infinity
[Feature Request]: Cluster Admin HTTP APIs - part2
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 445
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for the same feature request?
- [X] I have checked the existing issues.
### Is your feature request related to a problem?
_No response_
### Describe the feature you'd like
Support following HTTP APIs:
Set node role:
```console
curl --request POST \
--url http://localhost:23820/admin/node/current \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"role" : "leader"
} '
```
List node variables:
```console
curl --request GET \
--url http://localhost:23820/admin/variables \
--header 'accept: application/json' \
```
List node configs:
```console
curl --request GET \
--url http://localhost:23820/admin/configs \
--header 'accept: application/json' \
```
Show node variable by name:
```console
curl --request GET \
--url http://localhost:23820/admin/variables/{var_name} \
--header 'accept: application/json' \
```
### Describe implementation you've considered
_No response_
### Documentation, adoption, use case
_No response_
### Additional information
_No response_
Contributor guide
Research direction
Start by locating the HTTP API entry points for /admin/node/current, /admin/variables, and /admin/configs, then inspect how related administrative routes are registered and tested. Done means the four requested endpoints accept or return JSON as shown, including setting the node role and retrieving variables by name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100