Skip to content

Commit

Permalink
Add config params for stat
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Jan 19, 2024
1 parent 1b156bd commit 46138f2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
30 changes: 30 additions & 0 deletions docs/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,36 @@ root_default: /var/cache/pelican/maxmind/GeoLite2-City.mmdb
default: $ConfigBase/maxmind/GeoLite2-city.mmdb
components: ["director"]
---
name: Director.MinStatResponse
description: >-
A positive integer indicating minimum number of origin's responses required for a `stat` call
type: int
default: 1
components: ["director"]
---
name: Director.MaxStatResponse
description: >-
A positive integer indicating maximum number of origin's responses required for a `stat` call.
`stat` call will cancel the rest of the ongoing query if max reponse is hit.
type: int
default: 1
components: ["director"]
---
name: Director.StatTimeout
description: >-
The timeout for a single `stat` request.
type: duration
default: 200ms
components: ["director"]
---
name: Director.StatConcurrencyLimit
description: >-
The maximum number of concurrent `stat` request to a single origin server.
Additional requests are blocked until total requests for the origin is below limit
type: int
default: 100
components: ["director"]
---
############################
# Registry-level configs #
############################
Expand Down
4 changes: 4 additions & 0 deletions param/parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion param/parameters_struct.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46138f2

Please sign in to comment.