We are migrating an existing application that requires a decent database setup. We've run a simple mysqlslap test on two server configurations - combined app & db server, separate app & 2 db servers (master/slave):
mysqlslap --auto-generate-sql --concurrency=50 --number-of-queries=1000 --number-char-cols=50 --number-int-cols=50 -vv
- Result for separate servers is slower even though it is using the same instance size and being run from the db server.
- In another test, using microtime & looping over a query, - there is a significant latency between the servers. Examples: test 1 is 0.01 seconds on combined and 0.1 on separate, and 0.2 (combined) compared to 3.0 (separate).
My questions:
- Are these expected results?
- Is there a way to minimize the latency between the servers?
- We are not able to use sysbench to match against the existing server - are the tests we've performed satisfactory or are there better alternatives?