Back

Telegraf has a high CPU usage

  • 0
  • Self Hosted
  • General
42Tom
29 Apr, 2023, 21:13

Hi, I'm currently running some benchmarks of the Appwrite DB service against other DBs. I'm noticing that Telegraf has an insane CPU usage (more than one core at full load). It also has a high I/O usage. I'm running the docker deployment on a M1 mac. Any idea why is this happening?

TL;DR
Issue: The user is experiencing high CPU usage with Telegraf in their Appwrite deployment. Possible solution: The user should provide more information about their setup, such as how they installed Appwrite and the result of the `docker stats` command. It is mentioned that Telegraf is used for usage stats and data aggregation, and there are plans to rewrite this process in the future. However, there is no specific solution provided for the high CPU usage issue.
Drake
29 Apr, 2023, 21:14

How did you install Appwrite?

42Tom
29 Apr, 2023, 21:14

With the official docker compose file provided in the doc

Drake
29 Apr, 2023, 21:15

So not from source (GitHub repo) right?

42Tom
29 Apr, 2023, 21:15

Nope

Drake
29 Apr, 2023, 21:18

So telegraf is used for our usage stats. Stuff gets stored there and then data is aggregated every 30 seconds by default. We're rewriting how we do all this, though so this will probably change drastically in the near future

Milukun
26 May, 2023, 13:32

This is a new appwrite I created about 4 hours ago on my new vps server , I just created a project and then used the flutter SDK to complete the registration function for an account with 100% CPU usage and very high hard drive reads. This has happened to my previous deployments, how should I avoid it? I am no longer able to log in, what information can I provide to you after restarting my VPS?

Drake
26 May, 2023, 15:11

Please make a new post and include info about how you installed Appwrite and the result of docker stats when the problem occurs

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more