@@ -90,18 +90,14 @@ export const env = createEnv({
90
90
// Sets the max amount of memory Redis can use.
91
91
// "0" means use all available memory.
92
92
REDIS_MAXMEMORY : z . string ( ) . default ( "0" ) ,
93
- // Sets the max batch Redis will handle in batch operations like MGET and UNLINK.
94
- // This will be removed if a consistent batch size works for all use cases.
95
- // ioredis has issues with batches over 100k+ (source: https://github.com/redis/ioredis/issues/801).
96
- __EXPERIMENTAL_REDIS_BATCH_SIZE : z . coerce . number ( ) . default ( 50_000 ) ,
97
93
// Sets the number of recent transactions to store. Older transactions are pruned periodically.
98
94
// In testing, 100k transactions consumes ~300mb memory.
99
95
TRANSACTION_HISTORY_COUNT : z . coerce . number ( ) . default ( 100_000 ) ,
100
96
// Sets the number of recent completed jobs in each queue.
101
97
QUEUE_COMPLETE_HISTORY_COUNT : z . coerce . number ( ) . default ( 2_000 ) ,
102
98
// Sets the number of recent failed jobs in each queue.
103
99
// These limits are higher to debug failed jobs.
104
- QUEUE_FAIL_HISTORY_COUNT : z . coerce . number ( ) . default ( 20_000 ) ,
100
+ QUEUE_FAIL_HISTORY_COUNT : z . coerce . number ( ) . default ( 10_000 ) ,
105
101
// Sets the number of recent nonces to map to queue IDs.
106
102
NONCE_MAP_COUNT : z . coerce . number ( ) . default ( 10_000 ) ,
107
103
} ,
@@ -134,8 +130,6 @@ export const env = createEnv({
134
130
process . env . CONFIRM_TRANSACTION_QUEUE_CONCURRENCY ,
135
131
ENGINE_MODE : process . env . ENGINE_MODE ,
136
132
REDIS_MAXMEMORY : process . env . REDIS_MAXMEMORY ,
137
- __EXPERIMENTAL_REDIS_BATCH_SIZE :
138
- process . env . __EXPERIMENTAL_REDIS_BATCH_SIZE ,
139
133
TRANSACTION_HISTORY_COUNT : process . env . TRANSACTION_HISTORY_COUNT ,
140
134
GLOBAL_RATE_LIMIT_PER_MIN : process . env . GLOBAL_RATE_LIMIT_PER_MIN ,
141
135
DD_TRACER_ACTIVATED : process . env . DD_TRACER_ACTIVATED ,
0 commit comments