Hi,I'm trying to use AWS serverless elasticache but facing some issues.No matter what I set db_port to in cgrates.json, cgrates tries to connect to elasticache on port 6380 when redisTLS: true and redisCluster:true. As AWS serverless elasticache only supports port 6379 this fails.If I set redisCluster: false, it seems to connect but immediately I get errors because bgrates is trying to use SELECT which is not supported by the serverless version of elasticache.The relevant part of my cgrates.json looks like this:--"data_db": {
"db_type": "*redis",
"db_host": "kjhjkhjkhkj.serverless.euw2.cache.amazonaws.com",
"db_port": 6379,
"caching": "*reload",
"remote_conns": [],
"items": {
"*accounts": { "precache": false },
"*destinations": {},
"*reverse_destinations": {},
"*rating_plans": {},
"*rating_profiles": {}
},
"opts": {
"redisTLS": true,
"redisMaxConns": 10,
"redisConnectAttempts": 20,
"redisCluster": true
}
}
Any help much appreciated.
Thanks,
Rhys
You received this message because you are subscribed to the Google Groups "CGRateS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cgrates/62a2be87-b33b-4240-8ed4-78467fcfa2dcn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cgrates/CA%2BJAn%2BRyvoCYLVZ7E9bD_rhQjGzQ%2BcQvN-vjuTKovjUNG9NS2Q%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/cgrates/CAPOYqYGXOYcAZ88QbDTjUMLF-v-WWzR_XrvXhXKQzFN0ruj6WQ%40mail.gmail.com.
"data_db": {
"db_type": "*redis",
"db_host": "kjhgjhgklkjlk.serverless.euw2.cache.amazonaws.com",
"db_port": 6379,
"db_user": "cgrates",
"db_password": "",
"remote_conns": [],
"remote_conn_id": "",
"replication_conns": [],
"replication_filtered": false,
"replication_cache": "",
"replication_failed_dir": "",
"replication_interval": "",
"items": {
"*accounts": { "limit": -1, "ttl": "", "static_ttl": false, "remote": false, "replicate": false },
"*destinations": { "limit": -1, "ttl": "", "static_ttl": false, "remote": false, "replicate": false },
"*reverse_destinations": { "limit": -1, "ttl": "", "static_ttl": false, "remote": false, "replicate": false },
"*rating_plans": { "limit": -1, "ttl": "", "static_ttl": false, "remote": false, "replicate": false },
"*rating_profiles": { "limit": -1, "ttl": "", "static_ttl": false, "remote": false, "replicate": false }
},
"opts": {
"redisTLS": true,
"redisCluster": true,
"redisMaxConns": 10,
"redisConnectAttempts": 20,
"internalDBDumpPath": "/var/lib/cgrates/internal_db/datadb",
"internalDBBackupPath": "/var/lib/cgrates/internal_db/backup/datadb",
"internalDBStartTimeout": "5m",
"internalDBDumpInterval": "0s",
"internalDBRewriteInterval": "0s",
"internalDBFileSizeLimit": "1GB",
"redisClusterSync": "5s",
"redisClusterOndownDelay": "0",
"redisConnectTimeout": "0",
"redisReadTimeout": "0",
"redisWriteTimeout": "0",
"redisPoolPipelineWindow": "150µs",
"redisPoolPipelineLimit": 0,
"redisSentinel": "",
"redisClientCertificate": "",
"redisClientKey": "",
"redisCACertificate": ""
}
},
Any help much appreciated.
Thanks,
Rhys
To view this discussion visit https://groups.google.com/d/msgid/cgrates/CAGv9gxuJJoq37Ymk-7mFW%2BM%3DUDws%3Du9KoTQ4svKnYzx5cPiN7Q%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/cgrates/e140ad79-3040-4fbc-acab-555d42c4973bn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cgrates/5e698eae-1905-4ac5-8d4d-cb2691a23fdan%40googlegroups.com.