Feed Aggregator

FromDual Performance Monitor for MySQL and MariaDB 0.10.4 has been released

sales_en - Sat, 2015-05-16 14:29

FromDual has the pleasure to announce the release of the new version 0.10.4 of its popular Database Performance Monitor for MySQL, MariaDB, Galera Cluster and Percona Server fpmmm.

You can download fpmmm from here.

In the inconceivable case that you find a bug in fpmmm please report it to our Bug-tracker.

Any feedback, statements and testimonials are welcome as well! Please send them to feedback@fromdual.com.

This release contains various minor bug fixes and improvements.

New installation of fpmmm v0.10.4

Please follow our mpm installation guide. A specific fpmmm installation guide will follow with the next version.

Prerequisites

CentOS 6

# yum install php-cli php-process php-mysqli

# cat << _EOF >/etc/php.d/fpmmm.ini
variables_order = "EGPCS"
date.timezone = 'Europe/Zurich'
_EOF

rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
yum update
yum install zabbix-sender

CentOS 7

# yum install php-cli php-process php-mysqli

# cat << _EOF …

Taxonomy upgrade extras:  mysql, performance, monitor, monitoring, fpmmm, maas, performance monitor, release,

Controlling worldwide manufacturing plants with MySQL

Shinguz - Thu, 2015-05-14 21:43

A MySQL customer of FromDual has different manufacturing plants spread across the globe. They are operated by local companies. FromDuals customer wants to maintain the manufacturing receipts centralized in a MySQL database in the Head Quarter in Europe. Each manufacturing plant should only see their specific data.

gtid_replication_customer.png

Manufacturing log information should be reported backup to European Head Quarter MySQL database.

The process was designed as follows:

gtid_replication_production_plant.png

Preparation of Proof of Concept (PoC)

To simulate all cases we need different schemas. Some which should be replicated, some which should NOT be replicated:

CREATE DATABASE finance;

CREATE TABLE finance.accounting (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `data` varchar(255) DEFAULT NULL,
  `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `data_rename` (`data`)
);


CREATE DATABASE crm;

CREATE TABLE crm.customer (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `data` varchar(255) DEFAULT …

Taxonomy upgrade extras:  multi-source replication, mysql-replication, replication, multi-master replication, fan-in replication, row filtering, gtid,

FromDual Performance Monitor for MySQL and MariaDB 0.10.1 has been released

sales_en - Sun, 2015-04-19 16:11

FromDual has the pleasure to announce the release of the new version 0.10.1 of its popular Database Performance Monitor for MySQL, MariaDB, Galera Cluster and Percona Server fpmmm.

You can download fpmmm from here.

In the inconceivable case that you find a bug in fpmmm please report it to our Bug-tracker.

Any feedback, statements and testimonials are welcome as well! Please send them to feedback@fromdual.com.

This release contains various minor bug fixes and improvements. Mainly it was a rewrite from Perl into PHP.

New installation of fpmmm v0.10.1

Please follow our mpm installation guide. A specific fpmmm installation guide will follow with the next version.

Prerequisites

CentOS 6

# yum install php-cli php-process php-mysqli

# cat << _EOF >/etc/php.d/fpmmm.ini
variables_order = "EGPCS"
date.timezone = 'Europe/Zurich'
_EOF

rpm -Uvh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
yum update
yum install zabbix-sender

CentOS 7

# yum install php-cli …

Taxonomy upgrade extras:  mysql, performance, monitor, monitoring, fpmmm, maas, performance monitor, release,

MySQL Environment MyEnv 1.2.0 has been released

sales_en - Sat, 2015-04-18 15:30

FromDual has the pleasure to announce the release of the new version 1.2.0 of its popular MySQL, Galera Cluster, MariaDB and Percona Server multi-instance environment MyEnv.

The new MyEnv can be downloaded here.

In the inconceivable case that you find a bug in the MyEnv please report it to our bug tracker.

Any feedback, statements and testimonials are welcome as well! Please send them to [feedback@fromdual.com](mailto:feedback@fromdual.com?Subject=Feedback for MyEnv).

Upgrade from 1.1.x to 1.2.0

# cd ${HOME}/product
# tar xf /download/myenv-1.2.0.tar.gz
# rm -f myenv
# ln -s myenv-1.2.0 myenv

If you are using plug-ins for showMyEnvStatus create all the links in the new directory structure:

cd ${HOME}/product/myenv
ln -s ../../utl/oem_agent.php plg/showMyEnvStatus/

Changes in MyEnv 1.2.0

MyEnv

  • Some minor fixes on init script.
  • Introduction of states production, quality, testing and development.
  • Colored prompt added for stage production databases.
  • All /tmp/*sock moved to /var/run/mysqld.
  • up output prepared …

Taxonomy upgrade extras:  myenv, operation, mysql operations, multi instance, consolidation, testing, release,

Galera and tables without a Primary Key

Shinguz - Mon, 2015-04-13 14:45

We finally got the results. The table does NOT have a Primary Key and/or an index on lSessionId:

CREATE TABLE IF NOT EXISTS `genLogins` (
  `lSessionId` varchar(128) NOT NULL,
  `lUid` int(8) NOT NULL DEFAULT '0',
  `lLang` char(2) NOT NULL,
  `lTimeout` int(10) NOT NULL DEFAULT '0',
  `lReloadsess` enum('y','n') NOT NULL DEFAULT 'n',
  `lTsexpire` int(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Please also read: Disadvantages of explicitly NOT using InnoDB Primary Keys and Limitations of MySQL.

The alter_engine.php script of our MySQL BasEnv (MyEnv) can help you finding such tables...


Taxonomy upgrade extras: 
Categories: 

Logging Galera Cluster conflicts

Shinguz - Sat, 2015-04-11 12:30

We typically suggest our customers to use our MySQL/Galera Cluster my.cnf configuration template to avoid MySQL configuration and performance problems.

And we are paranoid as well. Thus we enable all useful logging:

wsrep_log_conflicts = 1

But this has also some consequences of more visibility…

If you monitor carefully your Galera Cluster for example with the FromDual Performance Monitor for MySQL and MariaDB, you might probably see some strange values increasing from time to time:

mysql< SHOW GLOBAL STATUS LIKE 'wsrep_local_%r_s';
+---------------------------+-------+
| Variable_name             | Value |
+---------------------------+-------+
| wsrep_local_cert_failures | 42    |
| wsrep_local_bf_aborts     | 13    |
+---------------------------+-------+

Those values are indicators that some transactions (Galera write sets) did to not succeed and were aborted by Galera. In this case the paranoid logging helps to find, what exactly was aborted and possibly helps to find out, if this can or should …


Taxonomy upgrade extras:  logging, galera, cluster, conflict, deadlock, error log, error,

Galera Cluster last inactive check and VMware snapshots

Shinguz - Sat, 2015-04-11 11:46

From time to time we see at Galera Cluster customer engagements the following, for me scary, warning in the MySQL error log:

[Warning] WSREP: last inactive check more than PT1.5S ago (PT7.06159S), skipping check

We mostly see this in VMware set-ups. Some further enquiry with the Galera developers did not give a satisfying answer:

This can be seen on bare metal as well - with poorly configured mysqld, O/S, or simply being overloaded. All it means is that this thread could not get CPU time for 7.1 seconds. You can imagine that access to resources in virtual machines is even harder (especially I/O) than on bare metal, so you will see this in virtual machines more often.

This is not a Galera specific issue (it just reports being stuck, other mysqld threads are equally stuck) so there is no configuration options for that. You simply must make sure that your system and mysqld are properly configured, that there is enough RAM (buffer pool not over provisioned), that there is swap, that there are proper I/O drivers …


Taxonomy upgrade extras:  galera, snapshot, vmware,

Rename MySQL Partition

Shinguz - Fri, 2015-03-06 15:00

Before I forget it and have to search again here a short note about how to rename a MySQL Partition:

My dream:

ALTER TABLE history RENAME PARTITION p2015_kw10 INTO p2015_kw09;

In reality:

ALTER TABLE history
REORGANIZE PARTITION p2015_kw10 INTO (
PARTITION p2015_kw09 VALUES LESS THAN (UNIX_TIMESTAMP('2015-03-02 00:00:00'))
);

Caution: REORGANIZE PARTITION causes a full copy of the whole partition!

Hint: I assume it would be very easy for MySQL or MariaDB to make this DDL command an in-place operation…

MySQL Partitioning was introduced in MySQL 5.1.


Taxonomy upgrade extras:  partition, rename, ddl,

mpm run overpasses older one

Shinguz - Fri, 2015-03-06 09:41

This error is NOT serious. It happens, when one MPM run overpasses an older one or when you start a second run manually.

We will fix this issue in one of our next releases when we completely have redesigned the MPM agent…


Taxonomy upgrade extras: 
Categories: 

Nagios and Icinga plugins for MySQL/MariaDB released

sales_en - Wed, 2015-03-04 13:03

FromDual is pleased to announce the release of a new version 1.0.0 of the Nagios and Icinga plugins for MySQL, MariaDB, Percona Server and Galera Cluster.

Any information about the changes and the new functions of the Nagios and Icinga plugins you can find here.

If you have any problems with the new version you can reach us by e-mail at: contact@fromdual.com or by phone on +41 44 500 58 20.

Your FromDual Team


Taxonomy upgrade extras:  nagios, icinga, plugin, mysql, mariadb, percona server, galera cluster, release,

MySQL Enterprise Incremental Backup simplified

Shinguz - Wed, 2015-02-25 19:41

MySQL Enterprise Backup (MEB) has the capability to make real incremental (differential and cumulative?) backups. The actual releases are quite cool and you should really look at it…

Unfortunately the original MySQL documentation is much too complicated for my simple mind. So I did some testing and simplified it a bit for our customers…

If you want to dive into the original documentation please look here: Making an Incremental Backup .

If you want to use MySQL Enterprise Backup please let us know and [we send you a quote](mailto:contact@fromdual.com?Subject=Quote for MySQL Enterprise Backup)…

Prepare MySQL Backup infrastructure

mkdir /backup/full /backup/incremental1 /backup/incremental2

Full MySQL Backup

mysqlbackup --defaults-file=/etc/my.cnf --user=root --backup-dir=/backup/full backup

mysqlbackup --defaults-file=/etc/my.cnf --user=root --backup-dir=/backup/full apply-log

First MySQL Incremental Backup

mysqlbackup --defaults-file=/etc/my.cnf --user=root --incremental …

Taxonomy upgrade extras:  meb, mysql enterprise backup, enterprise, backup, incremental backup,

mpm/fpmmm module

Shinguz - Tue, 2015-02-24 19:57

Hi burps

In Zabbix we have “hosts”. In MPM a host is either a server (DBSERVER01) or a MySQL Instance (mysqld).

The host section [DBSERVER01] or [mysqld] overwrites the [default] section.

The MPM Agent is triggered by the mpm Module in the Server section. So it needs only ONE mpm module per MPM Agent.

In your case it most probably makes sense to have 2 sections: One for the Server and one for the Database:

[DBSERVER01] Modules = mpm server

[mysqld] Modules = process mysql myisam innodb master slave security Type = mysqld MysqlPort = 3306 PidFile = /var/run/mysqld/mysqld.pid

You also need 2 hosts in Zabbix associated with the according templates…

I hope this helps?

Regards, Shinguz


Taxonomy upgrade extras: 
Categories: 

Creating Event Handlers with MySQL Enterprise Monitor

Shinguz - Tue, 2015-02-17 13:57

MySQL Enterprise Monitor (MEM) has by default no Event Handlers created and activated. These Event Handlers you have to define yourself according to your needs.

In this article we discuss how to create MySQL Enterprise Monitor Event Handlers with MEM v.3.0.18. For other (older) versions the steps may vary…

Task: Event Handler for maximum Connections reached

We would like to be notified by MySQL Enterprise Monitor when the number of connections is near to max_connections.

For this we search first which Advisors are available at all: Configuration -> Advisors -> Availability.

Here we can see that we have an Advisor called Maximum Connection Limit Nearing Or Reached which is scheduled for every 5 minutes and has thresholds at 75, 85, 95 and 100%:

Now we know which Advisor should create and Event. As a next step we have to create and Event which should be triggered: Configuration -> Event Handling -> Create Event Handler.

Here we can create and Event with all its needed configuration: Events …


Taxonomy upgrade extras:  mysql enterprise monitor, monitoring, event, handler, performance monitor,

MySQL Environment MyEnv 1.1.4 has been released

sales_en - Wed, 2015-02-11 08:18

FromDual has the pleasure to announce the release of the new version 1.1.4 of its popular MySQL, Galera Cluster, MariaDB and Percona Server multi-instance environment MyEnv.

The new MyEnv can be downloaded here.

In the inconceivable case that you find a bug in the MyEnv please report it to our bug tracker.

Any feedback, statements and testimonials are welcome as well! Please send them to [feedback@fromdual.com](mailto:feedback@fromdual.com?Subject=Feedback for MyEnv).

Upgrade from 1.1.x to 1.1.4

# cd ${HOME}/product
# tar xf /download/myenv-1.1.4.tar.gz
# rm -f myenv
# ln -s myenv-1.1.4 myenv

If you are using plug-ins for showMyEnvStatus create all the links in the new directory structure:

cd ${HOME}/product/myenv
ln -s ../../utl/oem_agent.php plg/showMyEnvStatus/

Changes in MyEnv 1.1.4

Because an ugly but non-dangerous bugs we skipped the announcement of version 1.1.3.

All changes since MyEnv 1.1.2 are listed here. We recommend to skip version 1.1.3

MyEnv

  • Error messages are sent to stderr instead of …

Taxonomy upgrade extras:  myenv, operation, mysql operations, multi instance, consolidation, testing, release,

mpm configuration

Burps - Fri, 2015-02-06 09:42

Hi,

I have trouble to understand the settings of the different sections :
[default
],
[db_server
]…

I have a remote MySQL server registered in Zabbix as DBSERVER01, where there are several databases:

> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| phpmyadmin         |
| myapp              |
+--------------------+

The most important DB I need to monitor is “myapp” of course, but maybe I should watch some others ?

Here is what looks like my conf file (removed comments for this post) :

[default]
Type         = mysqld
Debug         = 2
LogFile       = /var/log/fromdual/FromDualMySQLagent.log
CacheFileBase = /var/log/fromdual/cache/FromDualAgentCache

Username     = zabbix_user
Password     = zabbix_pass
MysqlHost    = localhost
MysqlPort    = 3306

ZabbixServer = 1.2.3.4

Disabled     = false

Modules      = process mysql myisam slave mpm server

[DBSERVER01]          # This MUST …

Taxonomy upgrade extras:  mpm general,
Categories: 

Nagios and Icinga plugins for MySQL 1.0.0 have been released

Shinguz - Wed, 2015-02-04 22:02

FromDual has the pleasure to announce the release of the new version 1.0.0 of its widely used Nagios and Icinga plugins for MySQL, Galera Cluster, MariaDB and Percona Server.

All plugins are basically renewed and should now work all correctly.

The new Nagios/Icinga plugins can be downloaded here.

In the inconceivable case that you find a bug in the Nagios/Icinga plugins please report it to our bug tracker.

Any feedback, statements and testimonials are welcome as well! Please send them to [feedback@fromdual.com](mailto:feedback@fromdual.com?Subject=Feedback for Nagios/Icinga plugins).

Description of the current functionality

Details about the functionality and the usage of each plugin you get with the option: --help.

The following Nagios/Icinga plugin for MySQL and MariaDB are currently available:

check_db_mysql.pl

This Nagios/Icinga plugin alerts you if your MySQL database is not up and running.

check_errorlog_mysql.pl and errorLogFilterRules.pm

This Nagios/Icinga plugin alerts you if it finds some suspicious …


Taxonomy upgrade extras:  nagios, icinga, plugin, monitor, performance, alert,

Linuxtag: Knowledge and People - and New Colleagues?

joerg - Wed, 2015-02-04 10:49

At FromDual, we are currently preparing for our participation in the “Chemnitzer Linux-Tage” in March.
While we don’t yet know whether the programme committee accepted our proposed talks, we will have a booth and hope for interesting exchanges with others from the MySQL, database, Linux, … world. Of course, we will also mention that we are looking for additional colleagues - there are so many tasks that we need more people to handle them all. (In case you got curious, look here: http://www.fromdual.com/mysql-dba-2014-12-de )

While I attended the Chemnitzer Linux-Tage already last year (thank you, Frank Hofmann, for recommending them!), it will be the first time there for FromDual as a company. I enjoyed the informal atmosphere, which made it easy to get into contact with new people, to learn, and to discuss both facts and opinions.

To those of you who didn’t yet attend such events, I can only say: You are missing some great experiences! It is good to get stimulated by others, by …


Taxonomy upgrade extras: 

Download MySQL Enterprise Features

Shinguz - Mon, 2015-02-02 21:47

MySQL provides some great enterprise features beside the MySQL Server. The ones we are asked the most at customers are:

  • MySQL Enterprise Backup (MEB)
  • MySQL Enterprise Monitor (MEM) and
  • MySQL Enterprise Workbench (MWB)

MySQL Enterprise Backup (MEB)

MySQL Enterprise Backup (MEB) is an alternative to the mysqldump backup utility. Its big advantage is its fast backup but even faster restore performance. This is a must for all MySQL users having bigger databases than let’s say 10 to 20 Gigabytes and/or having hard requirements for restore times (MTTR).

Last implementation tests we did with a customer for an about 30 Gbyte database were:

 MEBmysqldump
Backup10 minutes18 minutes
Restore12 minutes80 minutes

If you need our help implementing MySQL Enterprise Backup into your backup infrastructure please [get in contact](mailto:contact@fromdual.com?Subject=MySQL Enterprise Features “Contact FromDual”) with us. MySQL Enterprise Backup also seamlessly integrates into the FromDual …


Taxonomy upgrade extras:  enterprise monitor, backup, workbench, enterprise,

MySQL table Point-in-Time-Recovery from mysqldump backup

Shinguz - Sun, 2015-01-25 19:42

Sometimes we face the situation where we have a full MySQL database backup done with mysqldump and then we have to restore and recover just one single table out of our huge mysqldump file.
Further our mysqldump backup was taken hours ago so we want to recover all the changes on that table since our backup was taken up to the end.

In this blog article we cover all the steps needed to achieve this goal for MySQL and MariaDB.

Recommendation: It is recommended to do theses steps on a testing system and then dump and restore your table back to the production system. If you do it directly on your production system you have to know exactly what you are doing…
Further this process should be tested carefully and regularly to get familiar with it and to assure your backup/restore/recovery procedure works properly.

The table we want to recover is called test.test from our backup full_dump.sql.gz. As a first step we have to do the recovery with the following command to our test database:

shell> zcat …

Taxonomy upgrade extras:  backup, restore, recovery, mysqldump, point-in-time-recovery, pitr,

FromDual Backup and Recovery Manager for MySQL 1.2.1 has been released

sales_en - Thu, 2015-01-22 21:12

FromDual has the pleasure to announce the release of the new version 1.2.1 of the popular Backup and Recovery Manager for MySQL and MariaDB (fromdual_bman).

You can download the FromDual Backup and Recovery Manager from here.

In the inconceivable case that you find a bug in the Backup and Recovery Manager please report it to our Bugtracker.

Any feedback, statements and testimonials are welcome as well! Please send them to feedback@fromdual.com.

Upgrade from 1.2.0 to 1.2.1

# cd ${HOME}/product
# tar xf /download/fromdual_brman-1.2.1.tar.gz
# rm -f fromdual_brman
# ln -s fromdual_brman-1.2.1 fromdual_brman

Changes in FromDual Backup Manager 1.2.1

FromDual Backup Manager

It contains mainly one very critical bug fix, one bug fix for using FromDual Backup Manger in combination with MariaDB and xtrabackup and several minor bug fixes and small improvements.

We STRONGLY RECOMMEND to upgrade immediately to v1.2.1 if you are using FromDual Backup Manager v1.2.0-RC1 and newer. In these versions errors of mysqldump in …


Taxonomy upgrade extras:  backup, restore, recovery, pitr, fromdual_brman, release, brman, bman, rman,

Pages

Subscribe to FromDual aggregator