I’m running into an issue. My readOnly replica (on Node B) takes twice as long to execute a query as on my primary (Node A). But when I fail over to Node B (which becomes my primary) it runs fine, but then it runs slow on the new replica so I don't think its the hardware.
I checked the index fragmentation and they are identical and there is currently nothing running on the servers except my query. Execution Plans are identical. The power is set to High Performance.
We are running SQL 2017 on windows 2016 server.
Any suggestions on what else to check?

As a test, we are going to create a dev environment using windows 2012 instead of 2016, to see if that is causing any issues.
– Tomasz Apr 10 '18 at 13:04