Extend Namespace dispatcher timeout
This commit is contained in:
parent
4d7c19e593
commit
4f8d58965b
7 changed files with 6 additions and 1 deletions
|
|
@ -116,6 +116,9 @@ The same change also makes the forge itself the release authority: release tags
|
|||
- Do not destroy Namespace Linux runners until `nsc describe` shows a real
|
||||
terminal container state or tombstone. Empty describe payloads mean the
|
||||
environment is still starting, not that the one-job runner has finished.
|
||||
- Keep the autoscaler-to-dispatcher HTTP timeout longer than the runner TTL.
|
||||
Dispatch requests intentionally block until the one-job runner exits, so short
|
||||
HTTP client timeouts cancel macOS provisioning mid-bootstrap.
|
||||
- Run forge Namespace services with the repo-owned `nsc` package and keep it
|
||||
current with the token format expected by Namespace. `nsc 0.0.520` is the
|
||||
first required baseline for revokable token-file auth. The dispatcher and
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,6 +1,7 @@
|
|||
listen: ":8090"
|
||||
dispatcher:
|
||||
url: "http://localhost:8080"
|
||||
timeout: "2h"
|
||||
|
||||
instances:
|
||||
- name: burrow
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ listen: "127.0.0.1:8090"
|
|||
|
||||
dispatcher:
|
||||
url: "http://127.0.0.1:8080"
|
||||
timeout: "2h"
|
||||
|
||||
instances:
|
||||
- name: burrow
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ func LoadConfig(path string) (Config, error) {
|
|||
return Config{}, fmt.Errorf("dispatcher.url is required")
|
||||
}
|
||||
if cfg.Dispatcher.Timeout.Duration == 0 {
|
||||
cfg.Dispatcher.Timeout = config.Duration{Duration: 15 * time.Second}
|
||||
cfg.Dispatcher.Timeout = config.Duration{Duration: 2 * time.Hour}
|
||||
}
|
||||
if len(cfg.Instances) == 0 {
|
||||
return Config{}, fmt.Errorf("at least one instance must be configured")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue