amazon-elasticache

Export existing AWS Lambda and API Gateway to Cloudformation template

*爱你&永不变心* 提交于 2019-12-05 02:22:24
How to export existing configured and tested infrastructure (including AWS Lambda functions, API Gateways, ElastiCache clusters, Cloudwatch rules) to Cloudformation template? I know about Cloudformer tool, but it supports limited number of AWS services (Amazon VPC, DynamoDB, etc) and don't supports some of services which we use. Which tools and approaches can I use in my case for generating Cloudformation template? Partial solution: there is ability to export Lambda function to AWS SAM file and then We will get YAML file which describes your Lambda function as 'AWS::Serverless::Function'. But

Elasticache replication group id in CloudFormation template

◇◆丶佛笑我妖孽 提交于 2019-12-04 21:17:17
问题 How do you set the Redis ReplicationGroup ID when using a CloudFormation template? All the options in the docs show no way to do that and the CLI you can do this easily. My end goal is to have a Redis replication group with 3 cluster members but I want to choose the name rather than AWS set a unique name for me. Here's a snippet of my template: "Resources": { "mqpReplicationGroup": { "Type": "AWS::ElastiCache::ReplicationGroup", "Properties": { "CacheNodeType": { "Ref": "CacheNodeType" },

AWS VPC Lambda Function keeps losing internet access

自闭症网瘾萝莉.ら 提交于 2019-12-04 14:35:49
Hope someone can help enlighten me on this issue. I am currently working on a lambda function that utilizes the cloud watch scheduler to check various devices and it is using elasticache to maintain a simple database on the readings. My problem is that after I shut down my testing at night. I fire up the lambda function in the morning and the function has lost access to the internet. Which is represented by the function timing out. Regularly after a few hour of messing around with my routes and my vpc settings it will start working again. Just to break the following day. Sometimes it works

Connect to ElastiCache cluster via Node.js

大兔子大兔子 提交于 2019-12-04 07:46:12
I'm confused as to how to connect to AWS's ElastiCache Redis via Node.js. I've successfully managed to connect to the primary host (001) via the node_redis NPM, but I'm unable to use the clustering ability of ioredis because apparently ElastiCache doesn't implement the CLUSTER commands. I figured that there must be another way, but the AWS SDK for Node only has commands for managing ElastiCache, not for actually connecting to it. Without using CLUSTER, I'm concerned that my app won't be able to fail over if the master node fails, since I can't fall back to the other clusters. I also get errors

Redis: Amazon EC2 vs Elasticache

∥☆過路亽.° 提交于 2019-12-03 03:00:51
问题 I want to host a Redis Server by myself. I compared EC2 to Elasticache. And I would like to know what the disadvantage of EC2 are. An EC2 tiny instance costs as much as the ELasticache tiny instance but hast 400 mb of ram more. Why should use Elasticache and not setup an own Redis Server on the ec2 tiny isntance? 回答1: Since I'm lazy, I'd choose Elasticcache over EC2 so that I can avoid some of the operational aspects of managing a Redis instance. With Redis on EC2, you are responsible for

Redis Out of Memory Exceptions, but still have plenty of memory

馋奶兔 提交于 2019-11-28 12:13:10
问题 I'm using the StackeExchange.Redis project to interact with Redis in our .NET Core C# project. Under heavy load, our Redis connections will begin to fail with the following exception: StackExchange.Redis.RedisServerException: OOM command not allowed when used memory > 'maxmemory' The problem is that we have a ridiculous amount of free memory left. We're using Elasticache, so it's easy to lookup: We can also connect to Elasticache through a shell, and see that there is memory avaialable, and

Can you connect to Amazon Elasticache Redis outside of Amazon

百般思念 提交于 2019-11-27 17:09:29
I'm able to connect to an Elasticache redis instance in a VPC from EC2 instances , but I would like to know if there is a way to connect to an Elasticache Redis node outside of Amazon EC2 instances, such as from my local dev setup or VPS instances provided by other vendors. Currently when trying from my local set up: redis-cli -h my-node-endpoint -p 6379 I only get a timeout after some time. No, you can't without resorting to 'tricks' such as a tunnel, which maybe OK for testing but will kill any real benefit of using a super-fast cache with the added latency/overhead. ...an Amazon ElastiCache

Using memcache client with ruby

二次信任 提交于 2019-11-26 21:59:12
问题 Am trying to connect created amazon elastiCache cluster endpoint using memcache-client. But am getting the error MemCache::MemCacheError: No connection to server (testcachecluster.u098ed.cfg.us e1.cache.amazonaws.com:11211 DEAD (Timeout::Error: execution expired), will retr y at 2013-06-21 11:34:15 +0530) from C:/ProgramData/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/me mcache-client-1.8.5/lib/memcache.rb:863:in `with_socket_management' from C:/ProgramData/RailsInstaller/Ruby1.9.3/lib

Can you connect to Amazon Elasticache Redis outside of Amazon

江枫思渺然 提交于 2019-11-26 18:53:20
问题 I'm able to connect to an Elasticache redis instance in a VPC from EC2 instances , but I would like to know if there is a way to connect to an Elasticache Redis node outside of Amazon EC2 instances, such as from my local dev setup or VPS instances provided by other vendors. Currently when trying from my local set up: redis-cli -h my-node-endpoint -p 6379 I only get a timeout after some time. 回答1: No, you can't without resorting to 'tricks' such as a tunnel, which maybe OK for testing but will