Files
nomad/.changelog
Brendan MacDonell 26485c45a2 Add job_max_count option to keep Nomad server from running out of memory (#26858)
If a Nomad job is started with a large number of instances (e.g. 4 billion),
then the Nomad servers that attempt to schedule it will run out of memory and
crash. While it's unlikely that anyone would intentionally schedule a job with 4
billion instances, we have occasionally run into issues with bugs in external
automation. For example, an automated deployment system running on a test
environment had an off-by-one error, and deployed a job with count = uint32(-1),
causing the Nomad servers for that environment to run out of memory and crash.

To prevent this, this PR introduces a job_max_count Nomad server configuration
parameter. job_max_count limits the number of allocs that may be created from a
job. The default value is 50000 - this is low enough that a job with the maximum
possible number of allocs will not require much memory on the server, but is
still much higher than the number of allocs in the largest Nomad job we have
ever run.
2025-10-06 09:35:10 -04:00
..
2022-12-06 12:45:36 -05:00
2022-11-22 14:12:07 -05:00
2022-11-02 10:34:10 -04:00
2022-10-06 17:00:29 -04:00
2022-10-27 13:31:29 -04:00
2022-10-26 11:51:45 -04:00
2022-11-03 18:57:57 -04:00
2022-11-07 08:53:19 -05:00
2022-11-17 09:47:11 -06:00
2023-01-10 16:35:53 -05:00
2023-02-02 10:37:40 -05:00
2023-02-02 16:29:04 -05:00
2023-02-03 08:14:53 -06:00
2023-02-14 15:03:26 -05:00
2023-02-27 11:27:40 -06:00
2023-03-23 18:28:26 -04:00
2023-03-07 15:52:26 -05:00
2023-06-27 08:02:06 -05:00
2023-03-31 11:25:32 -05:00
2023-04-05 12:18:19 -04:00
2023-06-28 11:06:05 -04:00
2023-06-23 15:57:09 -04:00
2023-06-02 20:26:01 -04:00
2023-05-31 15:34:16 -04:00
2023-06-26 13:33:29 -05:00
2023-07-31 15:04:36 -04:00
2023-10-25 10:41:17 -05:00
2023-10-10 16:37:24 -04:00
2023-11-01 10:56:39 -05:00
2023-12-15 09:54:10 -05:00
2023-11-07 13:18:07 -06:00
cl
2023-12-05 11:27:02 -08:00
2024-01-11 09:48:56 -06:00
2024-02-08 10:40:24 -05:00
2024-10-28 11:36:50 +01:00
2024-03-21 11:44:23 -07:00
2024-04-15 16:59:53 -04:00
2024-06-05 09:03:15 -04:00
2024-06-14 14:38:44 -04:00
2024-07-03 15:33:40 -04:00
2024-08-14 09:20:14 -05:00
2024-08-22 09:19:05 -07:00
2024-09-19 13:56:42 -04:00
2024-11-11 17:28:06 +01:00
2025-03-10 11:40:06 -04:00
2025-02-07 08:09:31 +00:00
2025-03-06 10:33:14 +00:00
2025-04-08 16:07:47 -07:00
2025-04-24 04:54:38 +02:00
2025-09-09 09:28:08 -04:00
2025-10-03 08:59:12 +02:00
2025-10-02 13:56:59 -07:00