I want to use the 'pt-online-schema-change' on a big table (~100M
records) and have a few questions:
1. while the change is running will my application be able to insert
new data into the changing table
2. will the app be able to read that data from the table while the
change is running
3. does this process effects the performance of mysql while running
Thanks,
Ran
--You received this message because you are subscribed to the Google Groups "Percona Discussion" group.To post to this group, send email to percona-d...@googlegroups.com.To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.
regarding the chunk size and sleep time, do you mind sharing the
values you worked with, just so i could get the "feeling" of the
numbers
another small question: while moving the data from the old table to
the new one, does the tool keeps the same private key (id) for the
record? what i mean is will the ids of the records in the new table
will be identical to the ones in the old table?
Cheers,
Ran
On Dec 8, 8:14 pm, Will Gunty <w...@gunty.net> wrote:
> 1) Yes
> 2) Yes
> and 3) Yes
>
> The internals of this tool are really quite simple, but complex at the same time. Essentially, what it does is creates triggers that on insert/update/delete on your current table, store the information. It then creates a new table with the new table definition. Then it migrates data in chunks over to the new table, and then "replays" the events that were triggered from your original table. At the end, it does a brief lock on both tables, and swaps them.
>
> You may want to play with the chunk size and sleep between chunks. Yes, this will increase the amount of time that the schema change takes, however, it will help the server. In my experience, this whole process can cause severe replication lag on even the fastest of servers. That is where we saw the greatest performance hit. We tuned the chunk size down and the sleep up and got to a point that we could actually do it without creating lag. However, this did make the schema change take about 2-4 times as long as a normal alter.
>
> Hope this helps.
>
> --
> Will Gunty
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>
>
>
>
>
>
>
> On Thursday, December 8, 2011 at 6:03 AM, Ran Margaliot wrote:
> > Hello,
>
> > I want to use the 'pt-online-schema-change' on a big table (~100M
> > records) and have a few questions:
>
> > 1. while the change is running will my application be able to insert
> > new data into the changing table
> > 2. will the app be able to read that data from the table while the
> > change is running
> > 3. does this process effects the performance of mysql while running
>
> > Thanks,
>
> > Ran
>
> > --
> > You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
> > To post to this group, send email to percona-d...@googlegroups.com (mailto:percona-d...@googlegroups.com).
> > To unsubscribe from this group, send email to percona-discuss...@googlegroups.com (mailto:percona-discuss...@googlegroups.com).
Sorry to reply to such an old message.If anyone is still subscribed, could you please tell me how you can force pt-online-schema-change to sleep a certain amount of ms after each chunk?We have I/O problems and would like to make it stop for a while after each INSERT SELECT *...Will how did you set the sleep param? There is not any option such as that one.Thanks
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to percona-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.