Skip to content

perf: replace mongosh ping with Python script for lightweight healthcheck#225

Open
FuryL wants to merge 1 commit intostoatchat:mainfrom
FuryL:main
Open

perf: replace mongosh ping with Python script for lightweight healthcheck#225
FuryL wants to merge 1 commit intostoatchat:mainfrom
FuryL:main

Conversation

@FuryL
Copy link
Copy Markdown

@FuryL FuryL commented Feb 22, 2026

Replace mongosh ping with Python script for lightweight healthcheck.
Makes it more friendly for servers with limited memory and CPU performance.

Testing with my 2C2G cloud server.
All other stoat containers are paused.
Due to inconsistent monitoring refresh intervals, test results may be inaccurate.

Test setting:
test_setting

Before modification:
CPU could reach as high as 50%, memory could reach as high as 400+MB.
before_healthcheck

After modification:
CPU usage peaked at 10%, memory usage remained around 270MB.
modified _healthcheck

Without healthcheck:
unable_healthcheck

…heck

Signed-off-by: FuryL <748550450@qq.com>
@Dadadah
Copy link
Copy Markdown
Member

Dadadah commented Feb 26, 2026

We are actively discussing this PR. We agree that the performance hit is unacceptable, but we are not sure if building a custom container is in scope of self-hosted. We'll let you know what we decide on.

@FuryL
Copy link
Copy Markdown
Author

FuryL commented Feb 26, 2026

Copy that. Thanks for the update👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants