File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ _Variables in bold are required._
52
52
| P2P_CONNECTION_HANDLER_MAX_INBOUND_STREAMS | ` 1024 ` | p2p handler max incoming streams limit at the same time on each connection |
53
53
| P2P_CONNECTION_HANDLER_MAX_OUTBOUND_STREAMS | ` 1024 ` | p2p handler max outgoing streams limit at the same time on each connection |
54
54
| P2P_CONNECTION_TAGGED_PEERS_VALUE | ` 100 ` | p2p tagged peers default value, see [ tagged peers] ( #tagged-peers ) . |
55
- | READINESS_MAX_CONNECTIONS || TODO |
56
- | READINESS_MAX_PENDING_REQUEST_BLOCKS || |
57
- | READINESS_MAX_EVENT_LOOP_UTILIZATION || |
58
- | READINESS_MAX_RESPONSE_DURATION || |
55
+ | READINESS_MAX_CONNECTIONS | ` 25 ` | Limit for readiness on active connections |
56
+ | READINESS_MAX_PENDING_REQUEST_BLOCKS | ` 5000 ` | Limit for readiness on pending request blocks |
57
+ | READINESS_MAX_EVENT_LOOP_UTILIZATION | ` 0.5 ` | Limit for readiness on Event Loop Utilization |
58
+ | READINESS_MAX_RESPONSE_DURATION | ` 5000 ` | Limit for readiness on response time, defautl 5 seconds |
59
59
| HTTP_PORT | ` 3001 ` | The telemetry port number for the OpenTelemetry server to listen on. |
60
60
| NODE_DEBUG | | If it contains ` aws-ipfs ` , debug mode is enabled. |
61
61
| LOG_LEVEL | ` info ` | Logging level. |
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ export function makeConfig () {
49
49
httpPort : process . env . HTTP_PORT ? parseInt ( process . env . HTTP_PORT ) : 3001 ,
50
50
51
51
// readiness
52
- readinessMaxConnections : process . env . READINESS_MAX_CONNECTIONS ? parseInt ( process . env . READINESS_MAX_CONNECTIONS ) : 200 ,
53
- readinessMaxPendingRequestBlocks : process . env . READINESS_MAX_PENDING_REQUEST_BLOCKS ? parseInt ( process . env . READINESS_MAX_PENDING_REQUEST_BLOCKS ) : 1e3 ,
52
+ readinessMaxConnections : process . env . READINESS_MAX_CONNECTIONS ? parseInt ( process . env . READINESS_MAX_CONNECTIONS ) : 25 ,
53
+ readinessMaxPendingRequestBlocks : process . env . READINESS_MAX_PENDING_REQUEST_BLOCKS ? parseInt ( process . env . READINESS_MAX_PENDING_REQUEST_BLOCKS ) : 5e3 ,
54
54
readinessMaxEventLoopUtilization : process . env . READINESS_MAX_EVENT_LOOP_UTILIZATION ? parseInt ( process . env . READINESS_MAX_EVENT_LOOP_UTILIZATION ) : 0.5 , // 0 to 1
55
55
readinessMaxResponseDuration : process . env . READINESS_MAX_RESPONSE_DURATION ? parseInt ( process . env . READINESS_MAX_RESPONSE_DURATION ) : 5e3 , // 5 sec
56
56
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ t.test('config - defaults', async t => {
37
37
peerAnnounceAddr : undefined ,
38
38
port : 3000 ,
39
39
httpPort : 3001 ,
40
- readinessMaxConnections : 200 ,
41
- readinessMaxPendingRequestBlocks : 1000 ,
40
+ readinessMaxConnections : 25 ,
41
+ readinessMaxPendingRequestBlocks : 5000 ,
42
42
readinessMaxEventLoopUtilization : 0.5 ,
43
43
readinessMaxResponseDuration : 5000 ,
44
44
p2pConnectionMaxConnections : 10000 ,
You can’t perform that action at this time.
0 commit comments