commit | 6b799c3271e84bc5b10e212d50f73f231e40ba40 | [log] [tgz] |
---|---|---|
author | Yuxiao Zhang <yuxiaozhang@google.com> | Wed Sep 04 11:18:08 2024 -0700 |
committer | Yuxiao Zhang <yuxiaozhang@google.com> | Wed Sep 04 19:47:47 2024 +0000 |
tree | dc73bc6ca5fccfd9fb49be060ac075660ab771ab | |
parent | 4971872e276b170470abae5c9591c5f569e72161 [diff] |
meta-google: ncsi: rate limit dhcrelay logs When the service failed e.g. when interface has no ip, it will print a lot of error messages on every restart. This adds a rate limit. Change-Id: Idd5c74c0d4a0b87f477092a873a1d54272365cb5 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
diff --git a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-dhcrelay.service.in b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-dhcrelay.service.in index 62a519a..078d1e2 100644 --- a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-dhcrelay.service.in +++ b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-dhcrelay.service.in
@@ -3,6 +3,8 @@ After=network.target StartLimitIntervalSec=10 StartLimitBurst=3 +LogRateLimitIntervalSec=120 +LogRateLimitBurst=100 [Service] Restart=always