tricorder-observability / Starship

Starship: next-generation Observability platform built with eBPF+WASM
GNU Affero General Public License v3.0
163 stars 23 forks source link

改造api-server为无状态服务 #123

Open lic17 opened 1 year ago

lic17 commented 1 year ago

Is your feature request related to a problem? Please describe. 现在的api-server是有状态的服务,无法做到高可用 Describe the solution you'd like 我觉得可以进行一些改造使api-server成为无状态服务,比如支持更多的数据库存储替换掉sqlite,把有状态的数据存储到数据库里,使api-server本身可以做到无状态。 Are you on Kubernetes Yes

Kernel version 4.xx/5.xx/6.xx

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

nascentcore-eng commented 1 year ago

感谢你的建议,这是一个值得思考的方向

我们应该考虑把 API server 对接到 SQLite 的部分做抽象,保证使用原生 SQL 并且保证不使用任何 SQLite 自带的独特属性、能力;这样未来就能低成本切换到支持水平扩展能力的数据库上。

假设要为 API Server 实现水平扩展的能力,需要: