Since we launched the official MySQL repos for Linux a little over a year ago, the offering has grown steadily. Starting off with support for the Yum based family of Red Hat/Fedora/Oracle Linux, we added Apt repos for Debian and Ubuntu in late spring, and throughout all of this, we have been continuously adding more and more MySQL products […]
MySQL Cluster NDB is a transaction engine and allows multi-master
for write operations. One may consider the architecture
using other storage engine such as INNODB as slave server to
provide the historical database. This serves the analytic
applications with historical data. The master - slave
topology allows scale out for both Master and Slave
Servers.
In order to achieve the MySQL Cluster Replication between NDB and
other storage engine together with providing historical
data,
1. Setup the MySQL Cluster Replication
2. Disable binary logging for data deletion process - Ensure data
removal / house keeping process on transaction tables in the
MySQL Cluster not to propagate to the slaves. Otherwise,
data from slave servers will also be cleaned up.
Setup the MySQL Cluster Replication
a. With a running MySQL Cluster, management node should be
running. Attaching …
In my last post I covered how to use the query rewrite framework to write your own pre-parse plugin. The interface is simplistic: a string goes in, a string comes out, and the rest is up to your plugin’s internal workings. It doesn’t interact that much with the server. Today I am going to show you the other type of plugins that rewrite queries, post-parse query rewrite plugins. This type is, out of necessity, more tightly coupled with the server; it operates on the internal data structures that make up the query’s parse tree.
Creating the Plugin
Declaring the plugin is similar to declaring a pre-parse plugin: you declare the plugin in the usual way but with the addition of a specific plugin descriptor for the post-parse query rewrite plugin type. This is a struct, as usual:
struct …[Read more]
One new feature in Percona XtraDB Cluster (PXC) in recent releases was the inclusion of the ability for an existing cluster to auto-bootstrap after an all-node-down event. Suppose you lose power on all nodes simultaneously or something else similar happens to your cluster. Traditionally, this meant manually re-bootstrapping the cluster, but not any more.
How it works
Given the above all-down situation, if all nodes are able to restart and see each other such that they all agree what the state was and that all nodes have returned, then the nodes will make a decision that it is safe for them to recover PRIMARY state as a whole.
This requires:
- All nodes went down hard — that is; a kill -9, kernel panic, server power failure, or similar event
- All nodes from the last PRIMARY component are restarted …
In the MySQL team, we are currently discussing deprecating the ability to change the collation_database and character_set_database settings. As part of our plan, mysql clients will still be able to access these variables, but they will be read-only.
Introduction
The MySQL manual summarizes these two variables as saying:
This option is dynamic, but only the server should set this information. You should not set the value of this variable manually.
This is to say that usage is already discouraged, but these two variables originally had a purpose of allowing a DBA to change the default character-set temporarily for the current session only. For example:
SET SESSION character_set_database=latin5; LOAD DATA infile 'foo.txt' ... ; -- foo.txt is interpreted as if it was in latin5 …[Read more]
Tue, 2014-12-02 12:19anatoliydimitrov
Puppet is a powerful automation tool that helps administrators manage complex server setups centrally. You can use Puppet to manage MariaDB — let's see how.
With Puppet, you describe system states that you want the Puppet master server [to enforce] on the managed nodes. If you don't have Puppet installed and configured yet, please check the official Puppet documentation.
Before you can use Puppet to manage MariaDB, you must install a Puppet module that sets the proper repository corresponding to your operating system and version of MariaDB. For Red Hat-based distros, including CentOS, you can use the …
[Read more]This post is a follow-up to my November 19 webinar, “Tips from the Trenches: A Guide to Preventing Downtime for the Over-Extended DBA,” during which I described some of the most common reasons DBAs experience avoidable downtime. The session was aimed at the “over-stretched DBA,” identified as the MySQL DBA short of time or an engineer of another discipline without the depth of the MySQL system. The over-stretched DBA may be prone to making fundamental mistakes that cause downtime through poor response time, operations that cause blocking on important data or administrative mishaps through the lack of best practice monitoring and alerting. (You can download my slides and view the recorded webinar here.)
Monitor the things
One of the aides to keeping the system up and …
This episode we start a 2-part series on MaxScale, a scaling proxy for MySQL. Ear Candy is OS Query and At the Movies is about MaxScale.
Relational databases aren’t very well suited to time-series data in some ways, but MySQL is powerful and flexible. At VividCortex, we have found that it’s a good storage engine to support a large-scale, high-velocity time-series database in the AWS cloud.
Join us next Tuesday, December 9, at 2 PM EST (7 PM GMT) as Baron Schwartz, our CEO and Founder discusses our unique time-series data requirements. He will explain the following:
- How we built a solution using MySQL and additional components such as Redis
- Why we needed more than just MySQL to meet the requirements
- The good and bad aspects of our architecture
- Performance statistics
- Thoughts for the future of our time-series data architecture
You will leave the talk with a greater understanding of MySQL’s capabilities related to time-series data. Please register …
[Read more]This episode we start a 2-part series on MaxScale, a scaling proxy for MySQL. Ear Candy is OS Query and At the Movies is about MaxScale.