- 최신
- 최다 투표
- 가장 많은 댓글
connection timeout means a connectivity issue. You need to make sure that NACL and Security Group allows ECS to connect to the Redis. In case when your Redis and ECS are in different VPCs, you also need to configure a peering and routing between them.
ecs security group is added in inbound rule of redis security group, but still same issue is persiting, am i writing code wrong way?
This is my code on node.js;
var redis = require("redis"); ////const redis = require('redis'); // const client = redis.createClient({ // host:'redis endpoint url', // port:6379, // }); // client.on("error", function (error) { // console.error("Error encountered:", error); // }); // client.on("connect", function (data1) { // console.log("Redis Connection Established"); // })
error : errno: 'ENOTFOUND',
관련 콘텐츠
- AWS 공식업데이트됨 8달 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 2년 전
Are you using route 53 at any point in the setup? I ran into similar issues in the past where my ECS containers were using only the private hosted zone of my domain. So I had to duplicate my public records into my private zone and that resolved it.
Can you update your post with code, which shows the way that you are connecting to redis?
This is my code on node.js;
var redis = require("redis"); ////const redis = require('redis'); // const client = redis.createClient({ // host:'redis endpoint url', // port:6379, // }); // client.on("error", function (error) { // console.error("Error encountered:", error); // }); // client.on("connect", function (data1) { // console.log("Redis Connection Established"); // })
errors: Error : Error: Redis connection in broken state: connection timeout exceeded.