mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(healthcheck): fix DERP test flakes (#7211)
This commit is contained in:
@@ -103,6 +103,10 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
|
||||
"stunport": 0,
|
||||
"stuntestIP": "string"
|
||||
},
|
||||
"node_info": {
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
},
|
||||
"round_trip_ping": 0,
|
||||
"stun": {
|
||||
"canSTUN": true,
|
||||
@@ -158,6 +162,10 @@ curl -X GET http://coder-server:8080/api/v2/debug/health \
|
||||
"stunport": 0,
|
||||
"stuntestIP": "string"
|
||||
},
|
||||
"node_info": {
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
},
|
||||
"round_trip_ping": 0,
|
||||
"stun": {
|
||||
"canSTUN": true,
|
||||
|
||||
@@ -5563,6 +5563,24 @@ Parameter represents a set value for the scope.
|
||||
| `none` |
|
||||
| `data` |
|
||||
|
||||
## derp.ServerInfoMessage
|
||||
|
||||
```json
|
||||
{
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------------------------------------------------------------------------------------------ | ------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `tokenBucketBytesBurst` | integer | false | | Tokenbucketbytesburst is how many bytes the server will allow to burst, temporarily violating TokenBucketBytesPerSecond. |
|
||||
| Zero means unspecified. There might be a limit, but the client need not try to respect it. |
|
||||
| `tokenBucketBytesPerSecond` | integer | false | | Tokenbucketbytespersecond is how many bytes per second the server says it will accept, including all framing bytes. |
|
||||
| Zero means unspecified. There might be a limit, but the client need not try to respect it. |
|
||||
|
||||
## healthcheck.AccessURLReport
|
||||
|
||||
```json
|
||||
@@ -5607,6 +5625,10 @@ Parameter represents a set value for the scope.
|
||||
"stunport": 0,
|
||||
"stuntestIP": "string"
|
||||
},
|
||||
"node_info": {
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
},
|
||||
"round_trip_ping": 0,
|
||||
"stun": {
|
||||
"canSTUN": true,
|
||||
@@ -5626,6 +5648,7 @@ Parameter represents a set value for the scope.
|
||||
| `client_logs` | array of array | false | | |
|
||||
| `healthy` | boolean | false | | |
|
||||
| `node` | [tailcfg.DERPNode](#tailcfgderpnode) | false | | |
|
||||
| `node_info` | [derp.ServerInfoMessage](#derpserverinfomessage) | false | | |
|
||||
| `round_trip_ping` | integer | false | | |
|
||||
| `stun` | [healthcheck.DERPStunReport](#healthcheckderpstunreport) | false | | |
|
||||
| `uses_websocket` | boolean | false | | |
|
||||
@@ -5655,6 +5678,10 @@ Parameter represents a set value for the scope.
|
||||
"stunport": 0,
|
||||
"stuntestIP": "string"
|
||||
},
|
||||
"node_info": {
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
},
|
||||
"round_trip_ping": 0,
|
||||
"stun": {
|
||||
"canSTUN": true,
|
||||
@@ -5758,6 +5785,10 @@ Parameter represents a set value for the scope.
|
||||
"stunport": 0,
|
||||
"stuntestIP": "string"
|
||||
},
|
||||
"node_info": {
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
},
|
||||
"round_trip_ping": 0,
|
||||
"stun": {
|
||||
"canSTUN": true,
|
||||
@@ -5813,6 +5844,10 @@ Parameter represents a set value for the scope.
|
||||
"stunport": 0,
|
||||
"stuntestIP": "string"
|
||||
},
|
||||
"node_info": {
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
},
|
||||
"round_trip_ping": 0,
|
||||
"stun": {
|
||||
"canSTUN": true,
|
||||
@@ -5947,6 +5982,10 @@ Parameter represents a set value for the scope.
|
||||
"stunport": 0,
|
||||
"stuntestIP": "string"
|
||||
},
|
||||
"node_info": {
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
},
|
||||
"round_trip_ping": 0,
|
||||
"stun": {
|
||||
"canSTUN": true,
|
||||
@@ -6002,6 +6041,10 @@ Parameter represents a set value for the scope.
|
||||
"stunport": 0,
|
||||
"stuntestIP": "string"
|
||||
},
|
||||
"node_info": {
|
||||
"tokenBucketBytesBurst": 0,
|
||||
"tokenBucketBytesPerSecond": 0
|
||||
},
|
||||
"round_trip_ping": 0,
|
||||
"stun": {
|
||||
"canSTUN": true,
|
||||
|
||||
Reference in New Issue
Block a user