Posts

Showing posts from July, 2020

Redis user permissions (ACL) and python connection

 Recently, I was working on setting up a redis cluster along with separate users for readwrite and readonly. I setup the readonly user using the below privileges (ACLs):   user redisreadonly on >mySuperSecretPassword ~* resetchannels -@all +@read +ping +asking   Once this is setup, I wrote a simple program in python to connect to the redis cluster using the readonly credentials and print the number of keys.   #!/usr/bin/env python3 """ pip3 install redis """ from redis.cluster import RedisCluster, ClusterNode # ─────── Cluster connection ─────── startup_nodes = [ ClusterNode("redis_host_1", 6379), ClusterNode("redis_host_2", 6379), ClusterNode("redis_host_3", 6379) ] rc = RedisCluster(startup_nodes=startup_nodes,decode_responses=True,username='redisreadonly',password='mySuperSecretPassw...

Grafana and Oracle database - Part 1 - Introduction

Image
As you may very well know, Grafana is an open source dash-boarding tool that displays graphs and dashboards that are light-weight and elegant and way more cooler as compared to Enterprise Manager (OEM) . For the uninitiated, here's a comparison of the dashboards in OEM vs Grafana. OEM Dashboards: Grafana Dashboard: For Server Performance: For Database Metrics: However, how does one make use of Grafana instead of OEM? A short, quick and concise guide to doing it is here . Basically, it utilises the power of the Telegraf agent (an open source monitoring agent) and to some extent, InfluxDB (a time series database wherein data is always stored along with time. This is how the data flows:          Next (Part 2A: Influx DB Installation) >  

Popular posts from this blog

Interesting Oracle Applications (EBS) Interview Questions

Modify retention period of workflow queues

Check if UTL_FILE and FND_FILE are working fine