@@ -90,18 +90,14 @@ export const env = createEnv({
9090 // Sets the max amount of memory Redis can use.
9191 // "0" means use all available memory.
9292 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 ) ,
9793 // Sets the number of recent transactions to store. Older transactions are pruned periodically.
9894 // In testing, 100k transactions consumes ~300mb memory.
9995 TRANSACTION_HISTORY_COUNT : z . coerce . number ( ) . default ( 100_000 ) ,
10096 // Sets the number of recent completed jobs in each queue.
10197 QUEUE_COMPLETE_HISTORY_COUNT : z . coerce . number ( ) . default ( 2_000 ) ,
10298 // Sets the number of recent failed jobs in each queue.
10399 // 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 ) ,
105101 // Sets the number of recent nonces to map to queue IDs.
106102 NONCE_MAP_COUNT : z . coerce . number ( ) . default ( 10_000 ) ,
107103 } ,
@@ -134,8 +130,6 @@ export const env = createEnv({
134130 process . env . CONFIRM_TRANSACTION_QUEUE_CONCURRENCY ,
135131 ENGINE_MODE : process . env . ENGINE_MODE ,
136132 REDIS_MAXMEMORY : process . env . REDIS_MAXMEMORY ,
137- __EXPERIMENTAL_REDIS_BATCH_SIZE :
138- process . env . __EXPERIMENTAL_REDIS_BATCH_SIZE ,
139133 TRANSACTION_HISTORY_COUNT : process . env . TRANSACTION_HISTORY_COUNT ,
140134 GLOBAL_RATE_LIMIT_PER_MIN : process . env . GLOBAL_RATE_LIMIT_PER_MIN ,
141135 DD_TRACER_ACTIVATED : process . env . DD_TRACER_ACTIVATED ,
0 commit comments