-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PGReplay query limit ? #4
Comments
Maybe you want to use the "-s" option to speed up the replay on the destination host? I often use |
I'm not that interested in speeding up the replay, I'm more interested in knowing if the message |
It means one of the following:
It is normal for pgreplay to keep one core busy, since it is constantly polling the database connections for messages from the database server; that is not necessarily a sign that it is not keeping up. If execution does not fall more then 3 minutes behind schedule, I'd suspect that a couple of queries just took longer than expected. You might use a tool like Usually, if the target system is consistently slower than the original database, you'll see pgreplay falling behind schedule more and more. If pgreplay does not fall more than 3 minutes behind schedule on a 20 hour run, I'd say there is nothing much to worry. How many statements per second do you have? pgreplay tends to get overloaded if that goes into the thousands. The option Since pgreplay is single-threaded, it won't be faster if you run it on a machine with more cores. |
Thanks for the explanations. I'll wait for the run to end in order to draw conclusions. |
I don't know the limits of pgreplay (never used it on such busy databases), but I have heard reports that it cannot keep up with very many statements per second. Try it and give me feedback :^) |
All right, I'll you know at that point ;) Thanks for the quick answers |
The test finishes somehow properly (I open another question for that) and does not drift more than 3 minutes after 22hours. ;) |
Hi,
I'm currently working with pgreplay in order to evaluate a migration for my company and I am facing this kind of message:
Execution is 3 minutes behind schedule
I'm running pgreplay and postgres on two separate servers and the postgres server does not seem to have any load issue at all (CPU/RAM/I/O are good). The pgreplay server however has one CPU at 100% for a couple of hours now.
The pgreplay files I'm replaying is around 20M records on a ~20 hours timeframe. Only read only queries (It's traffic from a pg hot_standby).
Is it possible that we are hitting an issue where the machine running pgreplay is not powerful enough ? (c5.large on AWS)
P.S: I am also using the -j option of pgreplay but seeing that the replay is still running after 12+ hours, I don't think it changes something in our case :)
The text was updated successfully, but these errors were encountered: