AIStore employs HTTP connections across multiple layers of its architecture.
Proper idle connection management is critical for preventing resource accumulation in long-running deployments.
AIStore uses a three-layer HTTP connection model:
AIStore servers accept connections from external clients including:
Source: ais/htcommon.go
IdleTimeout: Maximum time the server waits for the next request on an idle connectioncmn.DfltMaxIdleTimeout)Configuration Location: transport/client_*.go
Depending on the build tag:
fasthttpornethttp. See docs/build_tags.md.
Connections to cloud storage backends:
Configuration Location: cmn/client.go - via cmn.NewTransport() and the respective defaults that also include:
Note: These (and all other cited) settings reflect the current defaults and may change in future releases.
Idle connections directly correlate with goroutine count:
AISNumGoroutinesHigh) to detect issues.ais show cluster showing this alert:
Or, tune it down in resource-constrained or dev/testing environments.