[arvados] created: 2.6.0-213-gf4cb9b474
git repository hosting
git at public.arvados.org
Wed May 31 20:48:26 UTC 2023
at f4cb9b474add3becb58dccaf555c2a52d15cbd27 (commit)
commit f4cb9b474add3becb58dccaf555c2a52d15cbd27
Author: Brett Smith <brett.smith at curii.com>
Date: Wed May 31 16:46:36 2023 -0400
20433: Document that LimitLogBytesPerJob=0 disables live logging
Except for the throttle message, which is a nice user affordance.
Add a test for this specific case.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith at curii.com>
diff --git a/lib/config/config.default.yml b/lib/config/config.default.yml
index 06f4fb55e..00903ce2a 100644
--- a/lib/config/config.default.yml
+++ b/lib/config/config.default.yml
@@ -1155,6 +1155,8 @@ Clusters:
# Maximum bytes that may be logged by a single job. Log bytes that are
# silenced by throttling are not counted against this total.
+ # If you set this to zero, each container will only create a single
+ # log on the API server, noting for users that logging is throttled.
LimitLogBytesPerJob: 67108864
LogPartialLineThrottlePeriod: 5s
diff --git a/lib/crunchrun/logging_test.go b/lib/crunchrun/logging_test.go
index fdd4f27b7..42f165fd7 100644
--- a/lib/crunchrun/logging_test.go
+++ b/lib/crunchrun/logging_test.go
@@ -191,6 +191,10 @@ func (s *LoggingTestSuite) TestWriteLogsWithRateLimitThrottleBytesPerEvent(c *C)
s.testWriteLogsWithRateLimit(c, "crunchLimitLogBytesPerJob", 50, 67108864, "Exceeded log limit 50 bytes (crunch_limit_log_bytes_per_job)")
}
+func (s *LoggingTestSuite) TestWriteLogsWithZeroBytesPerJob(c *C) {
+ s.testWriteLogsWithRateLimit(c, "crunchLimitLogBytesPerJob", 0, 67108864, "Exceeded log limit 0 bytes (crunch_limit_log_bytes_per_job)")
+}
+
func (s *LoggingTestSuite) testWriteLogsWithRateLimit(c *C, throttleParam string, throttleValue int, throttleDefault int, expected string) {
discoveryMap[throttleParam] = float64(throttleValue)
defer func() {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list