MirageNetwork / MirageNetwork/MirageServer

[Server] 控制器优化

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

增强
Dominant language
Vue
Stars
207
Forks
20
PR merge metrics
No merged PRs in 30d

Description

为了快速达到堪用水平,我们在控制器处理中有很多粗糙的地方(包括部分来自HS的),这些优先级不算高,但在方便时我们需要调整优化它们:

  • HS使用了一些反复polling检查的机制(例如自熄节点剔除等),这些可考虑使用时间轮
  • 统一dex和控制器的log机制
  • cockpit和console间db本身是共用的,但方法很多都重新写了,设法复用
  • 编写更好的log,以准确分级记录信息以及统计用户控制台操作(后期对接ES)
  • 日志直出文件,可在超管驾驶舱页面上查看
  • 部分控制台API数据报文格式较凌乱,需要进行规整
  • 对于LastUpdate记录信息需要做细化(至少到组织,最好能到节点)并对缺失记录和冗余记录做处理

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides no file or test entry point. Read the controller areas named in the checklist, including polling, shared database methods, logging, console APIs, and LastUpdate handling. Completion criteria are not defined beyond selecting and finishing individual optimization items.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend, databases, observability
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.