sofastack / sofa-registry

SOFARegistry is a production-level, low-latency, high-availability service registry powered by Ant Financial.
https://www.sofastack.tech/sofa-registry/docs/Home
Apache License 2.0
653 stars 246 forks source link

Issue of high CPU usage by the meta leader #340

Closed huanglongchao closed 8 months ago

huanglongchao commented 12 months ago

cause by Poor performance fasterxml jackson & No cleanup mechanism on operator.node blacklist

image

after clean up

image

nocvalight commented 12 months ago

i think we can maintain a version and operator object in memory, skip deserialize when version in memory equals to version in db.

NickNYU commented 12 months ago

sounds kind of like a distributed configuration center Comparing with Nacos, config center is also a considerable functionality for SOFARegistry

huanglongchao commented 12 months ago

Absolutely right.

Moreover, When dealing with more than 100+ data points, the benchmark results indicate that Gson outperforms Jackson by a factor of 5 in terms of performance. replace Jackson with Gson when deserialize operator.node blacklist

huanglongchao commented 12 months ago

sounds like a major project.