Skip to content

Stats command on request types received - #947

Merged
FlorentinDUBOIS merged 1 commit into
mainfrom
keep-track-of-received-requests
Jun 5, 2023
Merged

FlorentinDUBOIS merged 1 commit into
mainfrom
keep-track-of-received-requests

Conversation

@Keksoj

@Keksoj Keksoj commented Jun 1, 2023

Copy link
Copy Markdown

It is usefull, in production, to track wether a reverse proxy has received a disproportionate amount of requests. For instance, the state could have received a lot of AddCluster requests, but not nearly as many RemoveCluster ones, hinting on something being wrong in the infrastructure.

sozu state stats     

initializing logger
Sending request : Request { request_type: Some(CountRequests(CountRequests)) }
Success: count requests
┌──────────────────┬───────┐
│ request type     │ count │
├──────────────────┼───────┤
│ ActivateListener │ 4     │
├──────────────────┼───────┤
│ AddBackend       │ 4     │
├──────────────────┼───────┤
│ AddCertificate   │ 2     │
├──────────────────┼───────┤
│ AddCluster       │ 3     │
├──────────────────┼───────┤
│ AddHttpFrontend  │ 2     │
├──────────────────┼───────┤
│ AddHttpListener  │ 2     │
├──────────────────┼───────┤
│ AddHttpsFrontend │ 2     │
├──────────────────┼───────┤
│ AddHttpsListener │ 2     │
├──────────────────┼───────┤
│ AddTcpFrontend   │ 2     │
├──────────────────┼───────┤
│ AddTcpListener   │ 2     │
├──────────────────┼───────┤
│ RemoveCluster    │ 3     │
└──────────────────┴───────┘

documenting comments on ConfigState
@Keksoj
Keksoj force-pushed the keep-track-of-received-requests branch from bbeb16e to b34b60f Compare June 1, 2023 15:22
@FlorentinDUBOIS
FlorentinDUBOIS merged commit 4b72893 into main Jun 5, 2023
@FlorentinDUBOIS
FlorentinDUBOIS deleted the keep-track-of-received-requests branch June 5, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants