My Blog

Redis on cloud

 1-click AWS Deployment   1-click Azure Deployment

1-click Google Deployment

Overview

Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker. It supports data structures such as strings, hashes, lists, sets,sorted sets with range queries, bitmaps, hyperlog logs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

Redis is owned by Redis (www.redis.io/) and they own all related trademarks and IP rights for this software.

Redis provides a different range of persistence options:

  • The RDB persistence performs point-in-time snapshots of your dataset at specified intervals.
  • the AOF persistence logs every write operation received by the server, that will be played again at server startup, reconstructing the original dataset. Commands are logged using the same format as the Redis protocol itself, in an append-only fashion. Redis is able to rewrite the log on background when it gets too big.
  • If you wish, you can disable persistence at all, if you want your data to just exist as long as the server is running.
  • It is possible to combine both AOF and RDB in the same instance. Notice that, in this case, when Redis restarts the AOF file will be used to reconstruct the original dataset since it is guaranteed to be the most complete.
  • Cognosys Provides Hardened images of Redis on the cloud ( AWS marketplace, Azure and Google Cloud Platform).Deploy Redis securely on cloud i.e. AWS marketplaceAzure and Google Cloud Platform (GCP)

Secured Redis on Ubuntu 14.04 LTS

Features

Major Features Of Redis

  • The full list of commands implemented by Redis, along with thorough documentation for each of them.
  • Pipelining: Learn how to send multiple commands at once, saving on round trip time.
  • Redis Pub/Sub: Redis is a fast and stable Publish/Subscribe messaging system! Check it out.
  • Redis Lua scripting: Redis Lua scripting feature documentation.
  • Debugging Lua scripts: Redis 3.2 introduces a native Lua debugger for Redis scripts.
  • Memory optimization: Understand how Redis uses RAM and learn some tricks to use less of it.
  • Expires: Redis allows to set a time to live different for every key so that the key will be automatically removed from the server when it expires.
  • Redis as an LRU cache: How to configure and use Redis as a cache with a fixed amount of memory and auto eviction of keys.
  • Redis transactions: It is possible to group commands together so that they are executed as a single transaction.
  • Mass insertion of data: How to add a big amount of pre existing or generated data to a Redis instance in a short time.
  • Partitioning: How to distribute your data among multiple Redis instances.
  • Distributed locks: Implementing a distributed lock manager with Redis.
  • Redis keyspace notifications: Get notifications of keyspace events via Pub/Sub (Redis 2.8 or greater).
  • Creating secondary indexes with Redis: Use Redis data structures to create secondary indexes, composed indexes and traverse graphs.

Azure

Installation Instructions For Ubuntu

Note : How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Azure Cloud

1) Download Putty.

2) Connect to virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)
Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2) Other Information:

1.The default installation path will be in your web root folder “/var/www/html”

2. Redis server configuration file path /etc/redis.conf

Important :

i)To start the redis server: service redis-server start Check the running status of redis server: service redis-server status

ii) To stop the redis server: service redis-server stop

iii) To test the installation of Redis, use below given command :  redis-cli ping

iv) If the response output is PONG, it means Redis is running successfully.

3.Default ports:

  • Linux Machines: SSH Port- 22
  • Redis runs on port 6379 , it is not allowed on Public interface for security. Please allow as applicable to proper ACL

Configure custom inbound and outbound rules using this link

4. To access Webmin interface for management please follow this link

Installation Instructions For Centos

Note : How to find PublicDNS in Azure

Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Centos instance on Azure Cloud

1) Download Putty.

2) Connect to virtual machine using following SSH credentials:

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Username: Your chosen username when you created the machine ( For example:  Azureuser)
Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember)

Step 2) Other Information:

1.The default installation path will be in your web root folder “/var/www/html”

2. Redis server configuration files :
1. /etc/redis.conf
2. /etc/redis-sentinel.conf

Important :

i)To start the redis server: systemctl start redis.service

ii) Check the running status of redis server: systemctl status redis.service

iii) To test the installation of Redis, use below given command:  redis-cli ping

iv) If the response output is PONG, it means Redis is running successfully.

3.Default ports:

  • Linux Machines: SSH Port- 22
  • Redis runs on port 6379 , it is not allowed on the Public interface for security. Please allow as applicable to proper ACL

Configure custom inbound and outbound rules using this link

4. To access Webmin interface for management please follow this link

Google

Installation Instructions For Redhat

Step 1) VM Creation:

 2.You can see at this page, an overview of Cognosys Image as well as some estimated costs of VM.

 3.In the settings page, you can choose the number of CPUs and amount of RAM, the disk size and type etc.

Step 2) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Redhat instance on Google Cloud

1) Download Putty.

2) Connect to the virtual machine using SSH key

  • Hostname: PublicDNS  / IP of machine
  • Port : 22

Step 3) Other Information:

1.The default installation path will be in your web root folder “/var/www/html”

2. Redis server configuration files :
1. /etc/redis.conf
2. /etc/redis-sentinel.conf

Important :

i)To start the redis server: systemctl start redis.service

ii) Check the running status of redis server: systemctl status redis.service

iii) To test the installation of Redis, use below given command:  redis-cli ping

iv) If the response output is PONG, it means Redis is running successfully.

3.Default ports:

  • Linux Machines: SSH Port- 22
  • Redis runs on port 6379 , it is not allowed on the Public interface for security. Please allow as applicable to proper ACL

Configure custom inbound and outbound rules using this link

4. To access Webmin interface for management please follow this link

Videos

Secured Redis on Ubuntu 14.04 LTS

What is Redis?

Top Uses of Redis

Installing Redis on linux/ ubuntu

Install Redis on Windows

Redis on cloud

Related Posts