PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > replication and ibdata file size
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
replication and ibdata file size

Réponse
 
LinkBack Outils de la discussion
Vieux 30/10/2007, 11h42   #1
Thomas Raso
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut replication and ibdata file size

Hi all,

on a replication architecture, with the same server, the same Mysql version
(4.1.21) and the same configuration, the same database.

I have a difference between two ibdata file size

innodb_data_file_path=ibdata1:2000M;ibdata2:2000M; ibdata3:2000M;ibdata4:2000M;ibdata5:2000M;ibdata6: 2000M;ibdata7:500M:autoextend

on the master :
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata1
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata2
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata3
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata4
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata5
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:36 ibdata6
-rw-rw---- 1 mysql mysql 22G Oct 30 11:40 ibdata7

on the slave

-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata1
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata2
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata3
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata4
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata5
-rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata6
-rw-rw---- 1 mysql mysql 15G Oct 30 11:40 ibdata7

The difference is over 7Go !!!

Is there anybody who has got any explanation about this ???

Thanks all

  Réponse avec citation
Vieux 30/10/2007, 15h06   #2
Augusto Bott
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: replication and ibdata file size

One possible explanation (possibly not the only one): if you do a
massive update on the master, that transaction would need to create
many blocks of versioned data. If you roll that transaction back,
those blocks will be freed to be reused, but the datafiles won't
shrink.

Since that transaction wasn't commited, it won't be written to the
binary log, so it won't be executed and rolled back on the slave
(that's only true when all tables involved on a transaction are
transaction-safe tables).

--
Augusto Bott



On 10/30/07, Thomas Raso <thomas.raso@gmail.com> wrote:
> Hi all,
>
> on a replication architecture, with the same server, the same Mysql version
> (4.1.21) and the same configuration, the same database.
>
> I have a difference between two ibdata file size
>
> innodb_data_file_path=ibdata1:2000M;ibdata2:2000M; ibdata3:2000M;ibdata4:2000M;ibdata5:2000M;ibdata6: 2000M;ibdata7:500M:autoextend
>
> on the master :
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata1
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata2
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata3
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata4
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata5
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:36 ibdata6
> -rw-rw---- 1 mysql mysql 22G Oct 30 11:40 ibdata7
>
> on the slave
>
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata1
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata2
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata3
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata4
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata5
> -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata6
> -rw-rw---- 1 mysql mysql 15G Oct 30 11:40 ibdata7
>
> The difference is over 7Go !!!
>
> Is there anybody who has got any explanation about this ???
>
> Thanks all
>

  Réponse avec citation
Vieux 30/10/2007, 16h11   #3
Thomas Raso
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: replication and ibdata file size

Thanks a lot for this explanation,

yeah we are doing many massive update and insert in our databases.

--

Thomas Raso

2007/10/30, Augusto Bott <augusto@bott.com.br>:
>
> One possible explanation (possibly not the only one): if you do a
> massive update on the master, that transaction would need to create
> many blocks of versioned data. If you roll that transaction back,
> those blocks will be freed to be reused, but the datafiles won't
> shrink.
>
> Since that transaction wasn't commited, it won't be written to the
> binary log, so it won't be executed and rolled back on the slave
> (that's only true when all tables involved on a transaction are
> transaction-safe tables).
>
> --
> Augusto Bott
>
>
>
> On 10/30/07, Thomas Raso <thomas.raso@gmail.com> wrote:
> > Hi all,
> >
> > on a replication architecture, with the same server, the same Mysql

> version
> > (4.1.21) and the same configuration, the same database.
> >
> > I have a difference between two ibdata file size
> >
> >

> innodb_data_file_path=ibdata1:2000M;ibdata2:2000M; ibdata3:2000M;ibdata4:2000M;ibdata5:2000M;ibdata6: 2000M;ibdata7:500M:autoextend
> >
> > on the master :
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata1
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata2
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata3
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata4
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:39 ibdata5
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:36 ibdata6
> > -rw-rw---- 1 mysql mysql 22G Oct 30 11:40 ibdata7
> >
> > on the slave
> >
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata1
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata2
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata3
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata4
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata5
> > -rw-rw---- 1 mysql mysql 2.0G Oct 30 11:40 ibdata6
> > -rw-rw---- 1 mysql mysql 15G Oct 30 11:40 ibdata7
> >
> > The difference is over 7Go !!!
> >
> > Is there anybody who has got any explanation about this ???
> >
> > Thanks all
> >

>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h34.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11897 seconds with 11 queries