I want to use pt-online-schema-change to change the schema of a big table (~100M records), does this tool effect the performance of MySql while its running?
By design, the tool will have no significant effect on performance. First, let's review what the tool does:
The first part is going to double all writes and there's no way around this. The second part is a batch operation that is going to potentially lock the current table and use up a lot of IO.
Fortunately, the second part is split into chunks and pt-online-schema-change
is quite clever about how big the chunks are and how long it waits between chunks:
Due to this, it is likely that your server will only be slightly affected by the copy. But of course, there is no guarantee and if possible, you should run the tool on a staging version of the database. In the event of issues, you can safely abort the tool with no loss of data.