Open SimonBillinghurst opened 6 months ago
Hi Simon, Your process looks ok, so I'm not really sure what could be the problem there. Does the sqlite database contain the commands you expect to run? Maybe they were not captured. Just a guess. Can you please check?
Yes it does, the 55000 events are queries associated with the required databases, think there were double that when I included other databases.
When I run this query on the sqlite database I get 10888 records, so it has recorded the details. SELECT COUNT(*) FROM EVents WHERE sql_text like '%INSERT%' AND database_name = 'TMS'
Question, this is recorded about the ReplayConsumer
WorkloadTools.Consumer.Replay.ReplayConsumer : All future delays will be calculated from this point + 1s, triggered by event {"Text":"use [PROD DATABASE NAME]\n", "SPID":346, "ApplicationName":".Net SqlClient Data Provider", "DatabaseName":"[PROD DATABASE NAME]", "LoginName":"[PROD SQL Login Name]", "HostName":"[PROD APPS SERVER NAME]", "Reads":0, "Writes":0, "CPU":0, "Duration":123, "EventSequence":1, "ReplayOffset":0, "StartTime":"2023-12-17T10:49:49.6990329Z", "Type":"RPCStarting"}
What does this mean, as it is listing production details, which do not exist in the Target, e.g. the production user does not exist on the target server.
Grasping at straws here.
I have been reading your blog post 'Workload replay with workload tools', specifically the part 'Recording multiple benchmarks for the same workload'
The issue I am having is the Replay Consumer is not updating the target database, some updates seem to be happening but 99% of them are not, I cannot work out what I am doing wrong.
The process I undertook was:
The log file of the output of replay consumer
No errors were displayed
I want to test performance changes when changing database compatibility mode from 2008 to 2016, so this is only part of the process I wanted to undertake, I wanted to then use the analysis consumer for this, and then repeat the process for 2016 and then compare.
Any ideas why the replayconsumer isn't working for me?
P.S. Noticed an error in the documentation for the ReplayConsumer, think this should be an int not bool
[bool QueryTimeoutSeconds = 30]
Appreciate any help