Hot answers tagged

3

You're using two different host names: $ rdcli -h dbbackupd.default.cluster.local $ host dbbackupd.default.svc.cluster.local The one used with rdcli is missing .svc.


2

In short, docker exec is used to operate an already-running container, while docker run -it starts a new container interactively. When you ran docker run -it --network foo --rm redis redis-cli -h rd you created a 2nd container, this time using the redis-cli image, which was used to query your running redis container. Were you to repeat the steps you took, ...


2

Yes, it's absolutely reasonable and this is how real apps work. This is the microservice approach which allows to independently scale instances of a service and a DB. What you have to do is to run your Flask and Redis services in a way so the first one can achieve the second one. If they are on the same machine, you just have to open Redis port used by your ...


1

It could be due to a "VPC DNS throttling", you can find more information on the official documentation. https://aws.amazon.com/premiumsupport/knowledge-center/vpc-find-cause-of-failed-dns-queries/


1

By default Docker uses the bridge network. On a default Docker installation you can simply map a port to the container's service port. The Redis Docker image exposes its service on port 6379 so you can do: $ docker run --name rd -d -p 6379:6379 redis:latest From your host you can now run use the redis-cli utility: $ redis-cli 127.0.0.1:6379> ping PONG ...


1

Redis Cluster could be considered as an OOTB solution for the Scalability requirements. There is another interesting open source library known as Redis Shard for sharding implementations on Redis. Please find the GitHub repository here.


1

You don't mention orchestration, are you planning to implement all by your own configuration on top of Ubuntu? I recommend you that take a look at Kubernetes and StatefulSet workloads https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/ You can use Ubuntu as your host to accomplish your needs, but in my experience, you can only need to ...


1

Fortunately, the situation has improved and the problem no longer exists. Terraform supports in-place updates of the number of shards now. To quote from the updated documentation: num_node_groups Specify the number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other ...


1

You can create aws_elasticache_replication_group resource and use data source aws_elasticache_cluster to retrieve an actual amount of nodes. This way you should not write ignore_changes.


Only top voted, non community-wiki answers of a minimum length are eligible