Sharing the knowledge makes the world a better place. I embraced this culture to support and learn more and more. An open mind is like a fortress
Friday, 22 December 2017
Python 3 - Finding Route53 record set values
This is a quick and simple script shows which are the route 53 record set values for a certain list of valid alias. It checks which Mysql servers on EC2 are being pointed from those alias.
The EC2 resources are filtered by tag system.
I use the powerful python module for creating the table to be shown.
Extra database info like replication lag using the heartbeat table and the master of the Mysql server is present in the outcome.
Python version 3.4
What to proof: How to use Texttable, Boto3
Tuesday, 12 December 2017
Python3 - Check Heartbeat value on Mysql on EC2 instances
Friday, 8 December 2017
Python3 - Subprocess, Runs bash commands in a Python script
Subprocess for running Bash command on Shell
Wednesday, 6 December 2017
Python3 - Install & Variables
Thursday, 14 September 2017
Thoughts about PMM Percona Monitoring and Management
Friday, 1 September 2017
MongoDB storage engine
- How data is written to disk
- How data is deleted/removed from disk
- how data is read from disk
- Data structures used to store data
- MMAPv1
- WiredTiger
Monday, 7 August 2017
Aurora Auditing
- Enabling it is dynamic and it doesn't perform a cluster restart
- You can download the audit logs from console or aws cli
- You must be using Aurora 1.10.1 or greater to use Advanced Auditing.
Monday, 17 July 2017
Alert for Aurora failover
This Ruby script using the aws sdk library, check sometime if the Aurora cluster has failed over to another instance, and if so it raises a child Sensu alert.
It takes as parameter the db-cluster-id and it returns a exit code and exit message which can be interpreted by any monitoring system.
You can read and download it from my repo here
Github SSH URL configuration
This post is going to illustrate how you can easily configure and set up your github repository on Ubuntu
Sunday, 16 July 2017
Sys DB for Mysql 5.6
This article is to sum up why the SYS DB for Mysql 5.6 is useful and what I think it is worth to use. You can install, and have a big picture what kind of tables/views looking at the Github repo
Tuesday, 4 July 2017
Aws Summit 2017
Thursday, 8 June 2017
GPG encrypt tool
sdasdadadaGnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications.
Tuesday, 6 June 2017
DynamoDB Local and Global Secondary Indexes
Main features
- LSI allows another SORT key, SAME partition key
- Only at TABLE CREATION
- Max Five per table
- LSI are Asynchronously, reads from LSI are eventually consistency
- WCU and RCU Shared with the TABLE!!
- Eventual or Immediate Consistency
Friday, 2 June 2017
Mysql Events 5.6
Thursday, 1 June 2017
DynamoDB notes
Introduction
- A fully managed, NoSQL Database service
- Predictable, fully managed perf with seamless scalability
- No visible servers
- Fully resilient and highly available
- Perf scales in a consistent, logical and linear way
- Full and deppe integration with AWS IAM, rich security model
- NoSQL database engin
- Shares characteristics with Key/Value adn Document Store DB's
Friday, 20 January 2017
Aurora–Out of Memory
Aurora cluster writer 2xlarge with 20GB memory.
I was doing bunch of updates on all orders, members, Catalogs table. The scope was to replace some information for certain fields.
The operation was quite heavy because the tables have more than 50 Milions rows and it had a condition with like and percent at the beginning.
It didn't generate the best execute plan because that condition doesn't use the index on that field.
I had to develop a store procedure that had in input the lower and upper id limits, the primary key, and the range that it needs to add at every run.
Quite simple procedure that allow to split up the updates in smaller pieces.
Friday, 13 January 2017
External slave slows down Aurora Master replication
As a heavy user of RDS Aurora cluster, I had some chances to test it and find a few problems.
I'm going to summarize and show in which case the Aurora can have a very bad behaviour in case it is in a chain of replica servers.