Sysadmin tips
1.9K views | +0 today
Follow
Sysadmin tips
Tips and Tricks that we have to know and abuse every day. sysadmin, sysops and network.
Curated by stephane gault
Your new post is loading...
Scooped by stephane gault
Scoop.it!

Better Parallel Replication for MariaDB and MySQL | MariaDB

Better Parallel Replication for MariaDB and MySQL | MariaDB | Sysadmin tips | Scoop.it
Parallel replication is a much-expected feature of MySQL. It’s available in MariaDB 10.0 and in MySQL 5.7. Yet, both lose efficiency when replicating through intermediate masters. In this post, we’ll explain how parallel replication works and why it does not play well with intermediate masters. We’ll also offer a solution (hint: it involves Binlog Servers).
stephane gault's insight:

Parallel replication taking advantage of the binary log group commit optimization. Well expected feature !

No comment yet.
Scooped by stephane gault
Scoop.it!

How to setup a PXC cluster with GTIDs (and have async slaves replicating from it!)

How to setup a PXC cluster with GTIDs (and have async slaves replicating from it!) | Sysadmin tips | Scoop.it

This past week was marked by a series of personal findings related to the use of Global Transaction IDs (GTIDs) on Galera-based clusters such as Percona XtraDB Cluster (PXC).

stephane gault's insight:

Very complete setup guide to PXC. Clever use of Global Transaction IDs (GTIDs) on Galera-based clusters such as Percona XtraDB Cluster.

No comment yet.
Scooped by stephane gault
Scoop.it!

MySQL table Point-in-Time-Recovery from mysqldump backup | FromDual - MySQL, Galera Cluster, MariaDB and Percona Server support, SLA and services

MySQL table Point-in-Time-Recovery from mysqldump backup | FromDual - MySQL, Galera Cluster, MariaDB and Percona Server support, SLA and services | Sysadmin tips | Scoop.it
stephane gault's insight:

Very handy indeed !

No comment yet.
Scooped by stephane gault
Scoop.it!

How small changes impact complex systems – MySQL example

How small changes impact complex systems – MySQL example | Sysadmin tips | Scoop.it
If you’ve been studying complex systems you know what minor changes might cause consequences of much greater proportions, sometimes causing some effects that are not easily explained at first.
stephane gault's insight:

Very nice analysis on what can hide changes and history list.

No comment yet.
Scooped by stephane gault
Scoop.it!

Making HAProxy 1.5 replication lag aware in MySQL

Making HAProxy 1.5 replication lag aware in MySQL | Sysadmin tips | Scoop.it
HAProxy is frequently used as a software load balancer in the MySQL world. Peter Boros, in a past post, explained how to set it up with Percona XtraDB Cluster (PXC) so that it only sends queries to available nodes.
stephane gault's insight:

Ha proxy Failover aware of Replication lag is mandatory ...

No comment yet.
Scooped by stephane gault
Scoop.it!

How a set of queries can be killed in MySQL using Percona Toolkit’s pt-kill

How a set of queries can be killed in MySQL using Percona Toolkit’s pt-kill | Sysadmin tips | Scoop.it
You might have encountered situations where you had to kill some specific select queries that were running for long periods and choking the database. This post will go into more detail with an example of report query offloading.
stephane gault's insight:

Very handy tool

No comment yet.
Scooped by stephane gault
Scoop.it!

How to deal with MySQL deadlocks

How to deal with MySQL deadlocks | Sysadmin tips | Scoop.it
A deadlock in MySQL happens when two or more transactions mutually hold and request for locks, creating a cycle of dependencies. In a transaction system, deadlocks are a fact of life and not completely avoidable.
stephane gault's insight:

deadlocks is like prime evil !

No comment yet.
Scooped by stephane gault
Scoop.it!

Logical MySQL backup tool mydumper 0.6.2

Logical MySQL backup tool mydumper 0.6.2 | Sysadmin tips | Scoop.it
We are pleased to announce the third release in the 0.6 series of mydumper, a tool for performing logical MySQL backups. In this release, we focused on simplifying compiling the code and added new features for making logical backups.
stephane gault's insight:

Very useful tool

No comment yet.
Scooped by stephane gault
Scoop.it!

MySQL upgrade best practices

MySQL upgrade best practices | Sysadmin tips | Scoop.it
MySQL upgrades are necessary tasks and we field a variety of questions here at Percona Support regarding MySQL upgrade best practices. This post highlights recommended ways to upgrade MySQL in different scenarios.
stephane gault's insight:

dump, with xtrabackup is mandatory before any upgrade ! Logical AND FS backup, one for the consitency one for fast operations.

No comment yet.
Scooped by stephane gault
Scoop.it!

MySQL 101: Monitor Disk I/O with pt-diskstats

MySQL 101: Monitor Disk I/O with pt-diskstats | Sysadmin tips | Scoop.it
Here on the Percona Support team we often ask customers to retrieve disk stats to monitor disk IO and to measure block devices iops and latency. There are a number of tools available to monitor IO on Linux.
stephane gault's insight:

Very accurate way to find if your disks are the bottleneck (often the case).

Scoopit Love the percona toolkit, very powerfull to monitor and debug !

No comment yet.
Scooped by stephane gault
Scoop.it!

Simple MySQL Master HA with mysqlnd_ms

Simple MySQL Master HA with mysqlnd_ms | Sysadmin tips | Scoop.it
Jervin Real shares two ways of achieving high availability with the mysqlnd_ms extension using the mysqlnd plugin, MySQL Master Slave.
stephane gault's insight:

Good way to achieve HA in an Master Slave setup.

No comment yet.
Scooped by stephane gault
Scoop.it!

Query Optimization with MySQL 5.7 and MariaDB 10: Even newer tricks

Tutorial delivered at Percona Live London 2014, where we explore new features and techniques for faster queries with MySQL 5.6 and 5.7 and MariaDB 10, includin…
stephane gault's insight:
Query Optimization with MySQL 5.7 and MariaDB 10
No comment yet.
Scooped by stephane gault
Scoop.it!

MySQL benchmarks on eXFlash DIMMs

MySQL benchmarks on eXFlash DIMMs | Sysadmin tips | Scoop.it
In this blog post, we will discuss MySQL performance on eXFlash DIMMs. Earlier we measured the IO performance of these storage devices with sysbench fileio.EnvironmentThe benchmarking environment was the same as the one we did sysbench fileio in.
stephane gault's insight:

Great benchmark, with all those new storage techno, you have to figure what you'll really need before requesting a quote. IBM eXFlash and FuisionIO great storage card on the grill !

No comment yet.
Scooped by stephane gault
Scoop.it!

Hyper-threading – how does it double CPU throughput?

Hyper-threading – how does it double CPU throughput? | Sysadmin tips | Scoop.it
The other day a customer asked me to do capacity planning for their web server farm.
stephane gault's insight:

Back in the days, when HT came out on Xeon (P4 based), as a GSP (Game service provider) you where forced to turn HT off to get good response time, and max Frames. Well ... not much have changed :)

No comment yet.
Scooped by stephane gault
Scoop.it!

The MySQL Query Cache: How it works, plus workload impacts (good and bad)

The MySQL Query Cache: How it works, plus workload impacts (good and bad) | Sysadmin tips | Scoop.it
Query caching is one of the prominent features in MySQL and a vital part of query optimization. It is important to know how it works as it has the potential to cause significant performance improvements – or a slowdown – of your workload.
stephane gault's insight:

As we learned the hard way, MySQL query cache can be a huge bottleneck !

No comment yet.
Scooped by stephane gault
Scoop.it!

MySQL thread status: Waiting for query cache lock

MySQL thread status: Waiting for query cache lock | Sysadmin tips | Scoop.it

MySQL thread status: Waiting for query cache lock. Waiting for query cache lock is a connection status specific to MySQL 5.5 or newer...

stephane gault's insight:

Beware of this new feature in MySQL 5.5 or newer. We've learn the hard way, that it can be a killer on your performance at some point in a high concurrent query environnement. When you start to see some logs with : "Waiting for query cache lock", it may be time for disable it totaly !

No comment yet.
Scooped by stephane gault
Scoop.it!

Avoiding MySQL ALTER table downtime

Avoiding MySQL ALTER table downtime | Sysadmin tips | Scoop.it
MySQL table alterations can interrupt production traffic causing bad customer experience or in worst cases, loss of revenue. Not all DBAs, developers, syadmins know MySQL well enough to avoid this pitfall.
stephane gault's insight:

ALTER table operations are always a pain on big tables, résulting in downtimes. Here is a good insight of how it can be done.

No comment yet.
Scooped by stephane gault
Scoop.it!

MySQL Replication: ‘Got fatal error 1236′ causes and cures

MySQL Replication: ‘Got fatal error 1236′ causes and cures | Sysadmin tips | Scoop.it
MySQL replication is a core process for maintaining multiple copies of data – and replication is a very important aspect in database administration.
stephane gault's insight:

Very handy, you will face this error at least one time on replication.

No comment yet.
Scooped by stephane gault
Scoop.it!

Migrating to Percona XtraDB Cluster

Many organizations are interested in Percona XtraDB Cluster (PXC) as a replacement for conventional MySQL® master/slave architectures to eliminate replicatio...
stephane gault's insight:

Detailed key points to figure out if you want to go that path.

No comment yet.
Scooped by stephane gault
Scoop.it!

How to recover a PXC cluster

How to recover a PXC cluster | Sysadmin tips | Scoop.it
Galera replication for MySQL brings not only the new, great features to our ecosystem, but also introduces completely new maintenance techniques. Are you concerned about adding such new complexity to your MySQL environment?
stephane gault's insight:

Operations with a Percona Xtradb Cluster outage, how to recover and restart nodes. You'll always have a backup anyway (XtraBackup fast & secure).

No comment yet.
Scooped by stephane gault
Scoop.it!

The Easy Way of Building a Growing Startup Architecture Using HAProxy, PHP, Redis and MySQL to Handle 1 Billion Requests a Week - High Scalability -

The Easy Way of Building a Growing Startup Architecture Using HAProxy, PHP, Redis and MySQL to Handle 1 Billion Requests a Week - High Scalability - | Sysadmin tips | Scoop.it
This Case Study is a guest post written by Antoni Orfin , Co-Founder and Software Architect at ...
stephane gault's insight:

case study are priceless for sysops. loadbalanced php infra.

No comment yet.
Scooped by stephane gault
Scoop.it!

Home of Sysadmin & Sysops tips and tricks

Home of Sysadmin & Sysops tips and tricks | Sysadmin tips | Scoop.it

Commands, tips, network config, bigdata, performance tweaking, all you need to know.

stephane gault's insight:

MySQL, Percona, HAproxy, Nginx, Zsh, Cassandra, Hadoop, Memcached, Redis, ElasticSearch, Postfix, OpenDKIM, etc ...

No comment yet.