FromDual TechFeed (de)

Who is corrupting InnoDB blocks?

Oli Sennhauser - Tue, 2010-08-10 18:01

Because I have seen this week again a similar situation I thought about what could cause such InnoDB block corruptions. I came to the following evil-doers:

  • Editing the InnoDB tablespace file with a normal text editor.
  • Virus checker
  • fsck / chkdsk
  • Active/active DRBD/SAN (2 mysqld processes accessing the same InnoDB tablespace files at the same time)
  • Human interaction (on purpose?)
  • Broken I/O controller or other issues with the I/O system

If you have some more ideas. I would be happy to …


Taxonomy upgrade extras: 

FromDual references

Oli Sennhauser - Mon, 2010-08-02 12:35

What customers say about FromDual

Translate...
Wir sind mit der Funktionalität und der Einführung sehr zufrieden. Das gesamte Cluster läuft absolut stabil. Dies ist ein erheblicher Vorteil für unseren Kunden denn wir können unsere Dienstleistungen unterbrechungsfrei anbieten. Wir werden Galera bei weiteren Projekten einsetzen und bestehende Master/Slave-Anwendungen umstellen.
A. Rempening, Datenbank-Administrator, KiKxxl GmbH
 
Neben den fachlich sehr fundierten Tipps und Diskussionen hat mich …

Taxonomy upgrade extras: 

CREATE ALGORITHM = TEMPTABLE VIEW

Oli Sennhauser - Fri, 2010-06-11 10:34

To find out more about the VIEW’s behaviour I was playing around with the ALGORITHM = TEMPTABLE feature [1]. It was also related to a customers question of how VIEW’s effect performance of queries.

The results are ambivalent:

EXPLAIN
SELECT * FROM v LIMIT 10;
CREATE ALGORITHM = MERGE VIEW v
+----+-------------+-------+--------+---------------+---------+---------+-------------+--------+-------------+
| id | select_type | table | type   | possible_keys | key     | key_len | ref         | rows …

Taxonomy upgrade extras: 

FlexViews - Materialized Views for MySQL

Oli Sennhauser - Thu, 2010-05-06 21:45

Justin Swanhart from Percona just poked me an told me about FlexViews, a package for Materialized Views he built, based on my ideas. Please have also a look there, possibly it can help you any further…


Taxonomy upgrade extras: 

FromDual becomes Open Database Alliance (ODBA) Silver Partner

Oli Sennhauser - Sun, 2010-04-25 14:36

Uster, Switzerland – April 26, 2010 – FromDual has signed the Service Provider Partnership Agreement of the Open Database Alliance (ODBA).

FromDual is the first official ODBA consulting partner in Europe. The growing number of downloads and use of MariaDB, an improved and enhanced derivation of the MySQL database, also requires consultancy services for MariaDB in Europe.

We are excited to be working with ODBA as their first consulting partner in Europe says Oliver Sennhauser, Owner of FromDual. …


Taxonomy upgrade extras:  Mysql  Consulting  Open Database Alliance  Partner  Mysql-Consulting 

Is RethinkDB a possible solution for RRD SE?

Oli Sennhauser - Fri, 2010-04-02 08:44

When I dug through RethinkDB white papers I have seen that they make use of round-robin mechanisms.

We have to investigate a bit further to see if this can be used as a RRD SE and keep you informed…


Taxonomy upgrade extras: 

MySQL and MariaDB Configuration File template (my.cnf/my.ini)

Oli Sennhauser - Mon, 2010-03-15 22:53

The MySQL and MariaDB default configuration is not very great for production use. Some of the default values in my.cnf should be changed when you need it for business critical applications.

The following MySQL configuration file is in our opinion a good average configuration file for MySQL, Galera Cluster, MariaDB and Percona Server. For MySQL servers more performance tuning is not need in most cases.

Download the sample MySQL and MariaDB configuration file with wget directly from here.


                    
Taxonomy upgrade extras:  Configuration  Sample  My.cnf  My.ini  Template 

MySQL High-Availability (HA) solutions

Oli Sennhauser - Mon, 2010-03-15 22:25

The following solutions are used with MySQL:


Taxonomy upgrade extras:  High Availability  Ha  Drbd  Architecture  Heartbeat 

The MySQL CSV Storage Engine

Oli Sennhauser - Mon, 2010-03-15 20:53

A little summary about the MySQL CSV table engine:

  • The SQL-Demo script (930 byte) for the following article.
  • The CSV converter to convert normal CSV files into a CSV format which is for MySQL acceptable.

Caution: Use on your own risk!

MySQL CSV tables (internally also called TINA tables) are driven by the MySQL CSV storage engine. This feature was added in MySQL release 4.1.4. CSV tables store data in text files using the Character-Separated-Value format.

mysql> SELECT version();
+------------+
| …

Taxonomy upgrade extras:  Storage Engine  Csv 

MySQL Cluster analysis for foodmart

Oli Sennhauser - Mon, 2010-03-15 20:19

This is an automated analysis of the DBI:mysql:database=foodmart;host=localhost database for migration into MySQL Cluster. No warranty is made to the accuracy of the information.

This information should be valid for MySQL 4.1 and 5.0. Since 5.1 is not a final release yet, the numbers should be used as a guide only.

5.1-dd is for tables stored on disk. The ndb_size.pl estimates are experimental and should not be trusted. Notably we don’t take into account indexed columns being in DataMemory versus …


Taxonomy upgrade extras:  Mysql Cluster  Memory  Sizing  Foodmart 

ndb_size.pl report for database foodmart (21 tables)

Oli Sennhauser - Mon, 2010-03-15 20:08

MySQL Architectures Overview

Oli Sennhauser - Mon, 2010-03-15 19:00

Database Architecture & Design

Application logic in the middle tier?

Reduce money spent on software licenses by moving logic to the middle tier. This means moving stored procedures into the application server or web server layer where it is much cheaper to scale out. Reducing or eliminating business logic running in the DB may reduce Database CPU utilisation and hence save support costs for the DB Portability is key! [1]

The complete Open Source MySQL High Availability and Scale-Out Architecture Stack …


Taxonomy upgrade extras:  Mysql  Architecture 

What's going on when MySQL does operations on Partitions

Oli Sennhauser - Mon, 2010-03-15 16:50

Following question came up recently: What happens if you drop or add a partition of an existing already partitioned table with ALTER TABLE? Will it be copied or will just the single partition be dropped and added? How are the index(es) rebuild after such a drop/add?

In the MySQL documentation were not to many details mentioned:

ALTER TABLE … ADD PARTITION creates no temporary table except for MySQL Cluster.

ADD or DROP operations for RANGE or LIST partitions are immediate operations or …


Taxonomy upgrade extras:  Operations  Partition 

Operating System Signals on different platforms

Oli Sennhauser - Mon, 2010-03-15 16:21
shell> kill -l

Linux

 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE
 9) SIGKILL10) SIGUSR111) SIGSEGV12) SIGUSR2
13) SIGPIPE14) SIGALRM15) SIGTERM16) SIGSTKFLT
17) SIGCHLD18) SIGCONT19) SIGSTOP20) SIGTSTP
21) SIGTTIN22) SIGTTOU23) SIGURG24) SIGXCPU
25) SIGXFSZ26) SIGVTALRM27) SIGPROF28) SIGWINCH
29) SIGIO30) SIGPWR31) SIGSYS
34) SIGRTMIN35) SIGRTMIN+136) SIGRTMIN+2
37) SIGRTMIN+338) SIGRTMIN+439) SIGRTMIN+540) …

Taxonomy upgrade extras:  Operating System  Signal  Platform  Kill 

Quick links to the MySQL documentation

Oli Sennhauser - Mon, 2010-03-15 15:50

MySQL Cluster overview

Oli Sennhauser - Mon, 2010-03-15 14:19

This is a chaotic collection of my MySQL Cluster experience…

Table of Contents

config.ini template

A generic MySQL Cluster configuration file (config.ini) to start with. It is pretty much what the MySQL Cluster experts recommend right now:

#
# config.ini
#

# This configuration file is fore MySQL Clusters 6.2 and above...

# …

Taxonomy upgrade extras:  Mysql Cluster 

MySQL Cluster memory sizing

Oli Sennhauser - Mon, 2010-03-15 13:53

MySQL Cluster is pretty fast. The reason for this is, that it is completely memory based. Nowadays memory is still, in contrary to disk, limited to your systems. Thus, before installing a MySQL Cluster you have to calculate the amount of memory you need.

To say it in advance: You should consider to only use 64-bit Linux system with huge amount (4 - 64 GB) of RAM!

In release 5.1 MySQL Cluster became disk based. Now you have the possibility to swap out some data to disk. How much it is we will probably see a …


Taxonomy upgrade extras:  Mysql Cluster  Memory  Sizing 

MySQL hints

Oli Sennhauser - Mon, 2010-03-15 13:38

Table of Contents

Result set with temporary sequence

Sometimes you would like to have a result set with something like a rownum. You can do this at least in the following two ways:

a) with a TEMPORARY MEMORY table:

CREATE TEMPORARY TABLE mem (
    seq  INT NOT NULL …

Taxonomy upgrade extras:  Mysql  Migration  Innodb  Hint  Primary Key  Index  Prefixed Index  Sequence  Temporary  Keyword  Auto_increment  Memory Table 

DBA wisdoms

Oli Sennhauser - Mon, 2010-03-15 13:29

Controlling developers is like herding cats.

Kevin Loney, Oracle DBA Handbook

Oh no, it's not. It's much harder than that!

Bruce Pihlamae, long-term Oracle DBA


Do not assume!

Unknown IT specialist


Backups ist was für Warmduscher!
(engl. Backup is for sissies!)

Unkown DBA


Yesterday (the DBA version)

Yesterday, All those backups seemed a waste of pay. Now my database has gone away. Oh I believe in …


Taxonomy upgrade extras:  Backup  DBA  Tuning  Database Administrator 

MySQL trouble shooting

Oli Sennhauser - Mon, 2010-03-15 11:46

Table of Contents

max_open_files warning during mysqld startup

Problem

[Warning] Changed limits: max_open_files: 1024  max_connections: 100  table_cache: 457

[Warning] Could not increase number of max_open_files to more than 1024 (request: 1070)

Explanation …


Taxonomy upgrade extras:  Trouble Shooting  Open_files_limit  Table_open_cache  Limitnofile 

Pages

Subscribe to FromDual aggregator - FromDual TechFeed (de)