🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

mysql_replication_status

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysql_replication_status

0.1.3
Rubygems
Version published
Maintainers
1
Created
Source

Deprecated. Gem has been renamed to mysql_replication_monitor

mysql_replication_status

Utility to check the replication status between MySQL master and slave dbs set up to replicate to each other

All that is needed is to specify the two dbs by their Rails database config (environment) names (e.g. 'staging_master', 'staging_slave' or whatever).

Examples

specify both master and slave db configs

status = MysqlReplicationStatus.new(:master => 'master', :slave => 'slave)

default slave to the current environment

status = MysqlReplicationStatus.new(:master => 'master')

override the default time to cache the statuses (in seconds)

status = MysqlReplicationStatus.new(:master => 'master', :slave => 'slave, :refresh_time => 10)

status = MysqlReplicationStatus.new(:master => 'master', :slave => 'slave, :db_config_file => 'foofile.txt')

FAQs

Package last updated on 18 Oct 2009

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts