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 8177963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:39:11+00:00 2026-06-06T23:39:11+00:00

[update] May be my use (or misuse) of the seamless_database_pool gem. I just setup

  • 0

[update] May be my use (or misuse) of the seamless_database_pool gem.

I just setup a master/slave setup on Rails3 using seamless_database_pool. Does this mean that the reads are definitely NOT being redirected to the slave?

How can I check this at the MySQL level?
I was hoping show processlist would do this, but I’m not seeing any processes.

[update]

Running show processlist on the master displays the queries being run, so I guess the READs are not being passed to the slave.

The bin_log file just has the following (9’s and x’s added):

/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
\# at 4
\#xxxxxxx 99:99:99 server id 2 end_log_pos 106 Start: binlog v 4, server v 5.1.52-log created xxxx 99:99:99 at startup
ROLLBACK/*!*/;
BINLOG '
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxx
'/*!*/;
\# at 106
\#xxxx 99:99:99 server id 2 end_log_pos 125 Stop
DELIMITER ;
\# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;

Thanks

  • 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-06T23:39:14+00:00Added an answer on June 6, 2026 at 11:39 pm

    It is possible that the processes are too quick for you to catch on “show processlist”. If that is the case, you might be able to turn on logging in my.cnf.

    Otherwise, I understand that a slave MySQL is recommended to have binary logging turned on, and you can inspect that with the “mysqlbinlog” utility.

    You would go to the directory where MySQL binlogs are stored (on Linux it’s usually /var/lib/mysql or /var/lib/mysql/data), check the various bin files to get the latest – something like thisisyourbinfile.001723 – and just run mysqlbinlog on it. The output is pretty messy, but can be easily parsed with sed or searched with grep.

    There are also utilities which will intercept MySQL packets at the network level, and display them on standard output. Most are based on tcpdump, and you actually need little more than tcpdump itself:
    e.g. http://www.megalinux.net/using-tcpdump-for-mysql-query-logging/

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

Sidebar

Related Questions

UPDATE May this post be helpful for coders using RichTextBoxes. The Match is correct
Update: It appears that a recent XCode update may have changed this macro, please
Common situation: I have a client on my server who may update some of
Update: I reported this as a bug to Apple and they fixed it! All
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
Update : This is no longer an issue from C# 6, which has introduced
Wanted to add an alias for one of the charsets that PayPal may use
What would the MSDN sample look like without the yield keyword? You may use
UPDATE: Setting foreign_key_checks to 1 does not trigger a scan of the existing table
I am creating a calendar table for my warehouse. I will use this as

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.