Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] process表中已经存在499999条记录应该如何处理? #8039

Open
2 of 3 tasks
zcl1115 opened this issue Sep 4, 2024 · 1 comment
Open
2 of 3 tasks

[FR] process表中已经存在499999条记录应该如何处理? #8039

zcl1115 opened this issue Sep 4, 2024 · 1 comment
Assignees
Labels

Comments

@zcl1115
Copy link

zcl1115 commented Sep 4, 2024

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

日志打印显示manager.go:205 oid: 1, process has no more usable ids,并且数据库显示记录
mysql> select count(1) from process;
+----------+
| count(1) |
+----------+
| 499999 |
+----------+
1 row in set (0.10 sec),然后我发现其中很多都是已经被软删除的记录
mysql> select count(1) from process where deleted_at is not null;
+----------+
| count(1) |
+----------+
| 305739 |
+----------+
1 row in set (0.08 sec),想问一下这种除了增大resource_max_id_1还能如何处理

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@sharang
Copy link
Member

sharang commented Sep 5, 2024

https://deepflow.io/docs/zh/features/auto-tagging/process-tags/#%E5%85%B8%E5%9E%8B%E9%85%8D%E7%BD%AE%E4%BE%8B

    - match-regex: .* # 如果不加此项,所有其他进程都会被 accept
      action: drop

确认一下是否有在末尾加一条 drop 的规则,避免将不需要的进程同步上来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants