93 lines
3.4 KiB
Bash
93 lines
3.4 KiB
Bash
# Configuración de ejemplo para optimización de memoria
|
|
# Copia este archivo como .env.test y ajusta los valores según tus necesidades
|
|
|
|
# ===========================================
|
|
# CONFIGURACIÓN DE APPWRITE
|
|
# ===========================================
|
|
|
|
APPWRITE_PROJECT_ID="68d8c4b2001abc54d3cd"
|
|
APPWRITE_PROJECT_NAME="amayo"
|
|
APPWRITE_ENDPOINT="https://nyc.cloud.appwrite.io/v1"
|
|
APPWRITE_API_KEY="standard_b123c1dbaaf7d3f99aa81492509d6277da0cb89eaf86bb8c42210bae0bb39c3ce911ddf101b6be2d3af8972d44ae63beb32c269c24eedbbe032a6c4c13a16c7e542be00c06ab8e9c131986729d45b68e25ac35e770442ea5285b7367938105a7b2d0e380e944d3bd6582db2c3311b3c9d84be5227718f795f30e31de0b9e8439"
|
|
APPWRITE_DATABASE_ID="68d8cb9a00250607e236"
|
|
APPWRITE_COLLECTION_REMINDERS_ID="reminders_id"
|
|
REMINDERS_POLL_INTERVAL_SECONDS="30"
|
|
|
|
# ===========================================
|
|
# CONFIGURACIÓN DE DISCORD
|
|
# ===========================================
|
|
TOKEN=OTkxMDYyNzUxNjMzODgzMTM2.Gjzppb.OsdqEDhl_tiQmw4KL7ITbEZ1e-s9VeoF_xJvQQ
|
|
guildTest=1316592320954630144
|
|
GOOGLE_AI_API_KEY=AIzaSyDcqOndCJw02xFs305iQE7KVptBoBH8aPk
|
|
CLIENT=991062751633883136
|
|
|
|
# ===========================================
|
|
# CONFIGURACIÓN DE BASE DE DATOS
|
|
# ===========================================
|
|
DATABASE_URL=postgresql://postgres.gndwiodomcunueuxwthl:Lop0090...@aws-1-us-west-1.pooler.supabase.com:5432/postgres
|
|
|
|
# ===========================================
|
|
# REDIS
|
|
# ==========================================
|
|
REDIS_URL=redis-17965.c323.us-east-1-2.ec2.redns.redis-cloud.com
|
|
REDIS_PASS="HnPiQFoWwsBdJY62SiHZSEDmnbgiycZ5"
|
|
|
|
# ===========================================
|
|
# OPTIMIZACIÓN DE MEMORIA
|
|
# ===========================================
|
|
|
|
# Monitor de memoria (0 = desactivado, >0 = segundos entre reportes)
|
|
MEMORY_LOG_INTERVAL_SECONDS=120
|
|
|
|
# Optimizador avanzado de memoria (requiere --expose-gc)
|
|
ENABLE_MEMORY_OPTIMIZER=true
|
|
|
|
# ===========================================
|
|
# CACHE DE DISCORD.JS
|
|
# ===========================================
|
|
|
|
# Límites de cache (menor = menos memoria, mayor = mejor rendimiento)
|
|
CACHE_MESSAGES_LIMIT=50 # Mensajes por canal
|
|
CACHE_MEMBERS_LIMIT=100 # Miembros por servidor
|
|
|
|
# ===========================================
|
|
# SISTEMA DE LIMPIEZA AUTOMÁTICA
|
|
# ===========================================
|
|
|
|
# Intervalo de limpieza de mensajes (segundos)
|
|
SWEEP_MESSAGES_INTERVAL_SECONDS=300 # cada 5 minutos
|
|
|
|
# Tiempo de vida de mensajes en cache (segundos)
|
|
SWEEP_MESSAGES_LIFETIME_SECONDS=900 # 15 minutos
|
|
|
|
# ===========================================
|
|
# CONFIGURACIONES PREESTABLECIDAS
|
|
# ===========================================
|
|
|
|
# ULTRA-LIGERO (< 512MB RAM disponible):
|
|
# CACHE_MESSAGES_LIMIT=10
|
|
# CACHE_MEMBERS_LIMIT=25
|
|
# SWEEP_MESSAGES_INTERVAL_SECONDS=120
|
|
# SWEEP_MESSAGES_LIFETIME_SECONDS=300
|
|
# MEMORY_LOG_INTERVAL_SECONDS=60
|
|
|
|
# BALANCEADO (1GB+ RAM disponible):
|
|
# CACHE_MESSAGES_LIMIT=50
|
|
# CACHE_MEMBERS_LIMIT=100
|
|
# SWEEP_MESSAGES_INTERVAL_SECONDS=300
|
|
# SWEEP_MESSAGES_LIFETIME_SECONDS=900
|
|
# MEMORY_LOG_INTERVAL_SECONDS=120
|
|
|
|
# ALTO RENDIMIENTO (2GB+ RAM disponible):
|
|
# CACHE_MESSAGES_LIMIT=200
|
|
# CACHE_MEMBERS_LIMIT=500
|
|
# SWEEP_MESSAGES_INTERVAL_SECONDS=600
|
|
# SWEEP_MESSAGES_LIFETIME_SECONDS=1800
|
|
# MEMORY_LOG_INTERVAL_SECONDS=300
|
|
|
|
# ===========================================
|
|
# NOTAS:
|
|
# Mode es un cambio en cada estacion de mes, como algo festivo.
|
|
# ===========================================
|
|
|
|
MODE='halloween' # normal, halloween, christmas, newyear |