Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:27:26+00:00 2026-06-16T03:27:26+00:00

We are migrating an existing application that requires a decent database setup. We’ve run

  • 0

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:

  1. Are these expected results?
  2. Is there a way to minimize the latency between the servers?
  3. 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?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:27:27+00:00Added an answer on June 16, 2026 at 3:27 am

    Not a MySQL specialist, but hey, reality does not care 😉
    Physics is the same.

    1. yes. You introduce a network, there is latency.
    2. requests, batch.
      guaranteed 45 nanosecond latency. Generally: do NOT make small requests, batch.
    3. general may be a small set.
      database server I had was being hit with some hundred. 1000 query in general may be a small set.

    At the end, you HAVE latency – deal with it. The main way to do that is to ask for batches of data, not row by row. Then understand that “latency” is something for one thread – throughput can STILL be higher due to higher capacity. That is a trade-off here.

    If is is nice to you: all larger applications split, so it is not like that is not something you can deal with. Helps to have a real database server, though. Basically the machine should be powerfull enough to not be another bottleneck. You get latency, you also get scalability. Normally scalability is worth more than the latency.

    Again, this is physics – nothing secial to MySQL here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're currently migrating an existing application to ASP.NET MVC 3. We're reusing the database
We're eventually migrating an application to SQL Server 2008, but before we do that,
I am migrating an existing application from Weblogic server 9 to JBoss 5. My
I m migrating my existing drupal site from one server to another . I
I'm trying migrating an existing web application to use RavenDB. I currently have pages
I'm currently migrating all existing (incomplete) documentation to Sphinx . The problem is that
I am migrating an existing asp.net mvc application to Azure and would like to
I have an existing application with database ready I have made all the changes
Currently we are migrating an existing asp.net web application to asp.net mvc 2 platform.
We are migrating a database from MySQL to SQL Server. The migration is pretty

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.