4paradigm / 4paradigm/OpenMLDB

feat(api server): support show api servers

未关闭
#1,416 2 条评论 0 个 reaction 已指派 1 人 已被 @vagetablechicken 认领 在 GitHub 查看
api-server enhancement
主要语言
C++
星标
1.7k
派生
331
平均合并
12 天 12 小时
30 天内合并 PR
1

描述

the api server's register info is not available from nameserver, this make it not possible to query api server info from sdk or command line, like SQL `SHOW COMPONENTS`

enhance #1232

To support show api servers:

1. in clustered mode: those info can be stored directly in zk, E.g `$root_path/apiservers`
- nameserver hold a cache set of all api servers, so it is as simple as query a RPC method from nameserver
- remember delete node info after api server lost for awhile
2. standalone mode:
- name server only hold the cache set, it do not write api server info into zk

贡献指南

打开贡献指南

调研方向

The issue involves modifying the nameserver to cache API server information and handle registration/deletion in ZooKeeper for clustered mode, and manage a cache in standalone mode. Start by examining the nameserver's component management code and the ZooKeeper interaction logic. Look for existing RPC methods and the `SHOW COMPONENTS` SQL handling. Testing will require understanding the distributed setup and the API server registration flow.

由索引模型根据 Issue 内容生成。

评估

技术栈
sql
领域
api, backend, databases
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。