MySQL Replication.. Effective?

Dec 13, 2007

Some of you may have read my previous posts about a dual server configuration I am currently working with. I run a high traffic forum which has up to 2-3k of people online at once. I was wondering if it could be effective to setup MySQL Replication of certain tables which are read very frequently and then modifying the script to grab data from the slave server rather than the master? For say viewing threads, forums etc. Information which isn't updated literally every second.

A few questions...

-Will this place a lot of load on the master having to write the data to the slave as well? As in would the load I save on SELECT queries be used on writing to the slave anyway?

-Could this actually be effective?

View 13 Replies


ADVERTISEMENT

MySQL Replication

Jul 13, 2009

I am trying to achieve mysql replication between server1 and server2 with help from [url]

However, I have problem connecting server1 and server2 to perform the replication. The error that I receive during the first time replication on server2 is as below:-

mysql> LOAD DATA FROM MASTER;
ERROR 1218 (08S01): Error connecting to master: Access denied for user 'slave_user'@'server2' (using password: YES

However, I am able to connect from server2 to server 1 with:-
mysql -h server1 -u slave_user -p

I have followed the exact guides but still could not get it to work.

View 6 Replies View Related

MySQL Replication

Dec 29, 2008

I don't know much about MySQL replication at all but am trying to present a few different options to a client of mine.

They run a large eCommerce site with a very active database. For several reasons, they are considering having their site mirrored across two completely different dedicated hosting providers.

The question here is, is it also possible to replicate the MySQL database in real-time across external servers and if/how secure it is.

Essentially, if one DC becomes inactive they'd like to fall-back on the other. An even more ideal solution would be to split traffic across the two... but not sure if that's even possible, perhaps with DNS?

View 14 Replies View Related

MySQL Replication/Failover

May 24, 2008

I'm working for a client who has an e-commerce site currently hosted on a shared hosting solution.

He is now looking for 100% uptime (as near as), so I have suggested that we get 2 VPS and use DNS monitoring to switch servers as required (from DNSmadeEasy).

This is all fine, and the websites files/images do not change often, so I can use rsync every so often to sync these. Not a problem.

What does change frequently is the mySQL db for the site.

I've been looking at MySQL replication, but this seems to be no good. If one server goes down, then the other one takes over, they don't automatically sync themselves after they come back up. It seems MySQL cluster is best, but this needs 3 servers and they all need to be on the same LAN.

I've read you can set MySQL replication to MASTER-MASTER so that it acts like a cluster, and resyncs itself as required.

View 4 Replies View Related

Mysql Replication Stopped

Jul 23, 2008

I had configured mysql replication for one of my client. Now the replication is stopped and slave server is not updating the data. How can I resolve this and start the replication again?

View 7 Replies View Related

MySQL Replication Setup

Mar 31, 2008

if you have MySQL replication setup, and DNS failover switches over to the MySQL Slave server in case of an outage...

Is that gonna work? Will the Slave suddenly just work as a regular non-slave DB?

Then when the primary server comes back up, how do I sync my changes back to the master db?

View 14 Replies View Related

Mysql Master-slave Replication

Jul 22, 2008

I'm not too experienced with this, so I'm hoping someone more enlightened here can help.

Scenario:
I'm trying to build a social network site geared towards old people. I'm using LAMP environment. I want to have 1 mysql master (writes) and 2 mysql slaves (reads). Two web servers will read from the 2 mysql slaves and write to the one mysql master.

Questions:
My concern is this: when a user posts a comment via the webserver, the comment is written to the mysql master. I would like for him/her to see the comment he posted right away so they don't think something failed or went wrong. I'm afraid that replication to the mysql slaves will take some time to sync all of the mysql databases together. How can I work around this? Or am I mistaken and this doesn't actually happen?

How fast is replication? How can I mitigate this delay in replication to show the user instant results of their submission.

The same thing can apply to uploading photos to a user's profile.

View 3 Replies View Related

MySQL Replication For User On Shared Server

Nov 6, 2008

I never did replication and do not know much about it so I figured I would ask here if anyone knows or has done it before like this.

I have a user who wants me to enable replication on my server for his user. I dont like the sounds of it on a shared environment but if there is no risk to other users and its not a big resource hog I will do it. Anyway, from what I gather I have to:

1. execute:
GRANT REPLICATION SLAVE ON user_main.* TO 'repl'@'ip-here' IDENTIFIED BY '4T6WjUZa';
[url]

2. Stop mysql server and Add in my.cnf:
[mysqld]
log-bin=mysql-bin
server-id=1
slave-compressed=1
binlog-do-db=user_main
start server[url]

3. execute:
SHOW MASTER STATUS;
we need values of colomns File and Position from output of above command[url]

So my questions are:

Is there any security risk?
Is there significant extra resource usage?
Is this even done on shared environments?

View 5 Replies View Related

MySQL Replication Setup With 150 Queries/sec -> Major Lag

Jun 8, 2008

I have fairly a large web site that has a forum and a torrent tracker.

Currently MySQL server is handling about 150 queries an avarage per second.
Here is the server spec:

Core2Duo 2.66Ghz
4Gb RAM
320GB SATA 7200RPM (Server provider does not have 1.5K RPM nor 1.0k RPM)
100Mbit Connection (servers on the same switch and the switch does not have 1Gbit port)
MySQL Version: 5.0.51a

I had Master-Master Replication setup with forum running on one and the tracker running on the other.
Although this has been working for about few days, we started seeing lags in the replication process.
After a week, there is a major lag and the changes made on one of the servers takes about 5 hours to appear on the another.
So, this doesn't work.

What would be the other ways of splitting MySQL queries concerning the same database?

While I was researching, I read about MySQL Cluster with database storage engine being NDB.

But, let's say that there is a power failure on both the nodes at the same time, then I would lose the whole database as the database is stored on the memory correct?
I would not like to take that chance either, but if this is faster then replication method then maybe I will concider.

I thought about editing the forum coding to make all queries that concerns the tracker to go in to, say server B (with forum's primary MySQL server being Server A), and make the tracker use server B as MySQL backend, but it seemed like a heavy work so that will be the last choice.

View 6 Replies View Related

Effective/cost-effective Redirects

Jan 12, 2009

Assume that I want 3 URLs -- a main, 'real' URL and two misspelled variants.

Through a domain registrar, I register theCorrectSpelling.com, misspelling1.com and
misspelling2.com.

I retain the services of a web host and set up theCorrectSpelling.com with them.

What's the mosti) effective way
andii) cost-effective way
to establish misspelling1.com and misspelling2.com so that they refer/point/bounce to theCorrectSpelling.com?

Do I have to establish additional sites (with potential associated costs),

View 13 Replies View Related

DNS Replication

Aug 9, 2007

We are currently configuring two machines to act as primary / secondary name servers.

Both machines are server 2003 Standard Editions, obviously based in seperate locations.

I would like to replicate all primary zones as secondary zones on the second server.

However If a machine dies I dont want to have to re-add every zone manually - I would rather point the machine at the other one and have it pull back information for all zones that machine is authorative for.

Is there a way to do this on server 2003 DNS or not?

View 2 Replies View Related

Cost Effective Router

Jul 7, 2008

We are starting to bring a few servers in-house rather than leasing them. We decided to do it ourselves for our email server and a few others. We are starting with a 15mbps commit on fiber (via ethernet hand off), and don't plan to exceed 20-30 any time soon, but if we did we need remove for expansion on equipment.

What Router/Router Series would you guys recommand for a small budget friendly project, but more importantly something that is very stable? I'm pretty tech savvy, however easy to configure and maintain will be high up on the list....

Also what switch brand/series would you recommend that are cost effective and can handle a decent load?

View 14 Replies View Related

Is Thread_concurrency Variable Effective

Dec 18, 2008

It's recommended to make thread_concurrency = Number of CPU's x 2. But this is really effective with latest mysql5 versions?
[url]
Default 10
Range 1-512

Why to set it to 8 (4 cpus), for example, if recommended default value is 10? And why to set such a low value if range is till 512?

Also, how to check assigned value as "show variables;" command omit this value.

View 3 Replies View Related

Exchange Replication

Sep 16, 2007

What would be the best way to replicate two exchange servers across a WAN? I would like to run exchange but in two different physical locations for redundancy and backup purposes, to ensure if one goes down, the other is right there. Is there any good commercial solutions?

View 0 Replies View Related

Affordable Effective Load Balancing?

Jun 30, 2008

i've got a server that averages 3-4 TB a month. it is starting to max out the limits on the servers capacity and i want to setup another server on a different network that can help load balance, and if one of the servers are down for any reason the other server would take on all the load while the other server is down.

what is the best solution for this?

View 4 Replies View Related

Reliable And Cost-effective Switch

Aug 29, 2009

recommend me a reliable and cost-effective switch.

I need it to be able to do the basics and limit port speeds that aren't standard like 20Mbps or 30Mbps.

Please recommend me switches in all price ranges,

View 3 Replies View Related

Getting Broadcast Ip Address Effective Immediately

Aug 29, 2008

I've few servers which just transffered to another data center. After switfed, my sites having the problem to be access in some area. So I thought the propagation hasn't work fully. However, yesterday my technical team found that there's actually an error at the broadcast ip(entered wrongly). So we immediately change to the correct ip.

Can we get the broadcast ip work immediately cause my sites having trouble to be displayed.

View 0 Replies View Related

Cost Effective SATA Array

Jul 6, 2007

Can anyone recommend a good case/enclosure for a sata raid array? I would like to build an array using 500 GB SATA Harddrives. Will the server need much processing power and ram if I am going to use a decent hardware raid card? What card would you recommend? Are there any premade sata arrays that allow you to just pop in your own harddrives and don't cost thousands of dollars?

Also, can anyone recommend a enclosure if you had a server that had build in raid with 8 sata ports, but only two harddrive bays and wanted to use the entire 8 ports?

View 6 Replies View Related

Effective Tips For Stopping The SPAM

May 27, 2007

We're currently testing Postini after checking with Message Labs, etc and it seemed that Postini was the most highly recommended out of all of them. We shall see, as there does seem to be ALOT that get past their filters with spam level filtering set at their most sensative level.

However, what could I do for accounts with Hosting Firms. We have a couple on Pair, and while they use SA, their filters doesn't seem to be really effective at all. Users can come in over the weekend, and have 5 valid emails out of 200 junk......

BTW, has anyone used any of the spam appliances out there lately.

We tested them about 1.5 years back and none were really effective

View 14 Replies View Related

Cost Effective Colocation In Orlando, Florida

Feb 11, 2008

Does anyone know of decent data centers in or around the Orlando, Florida area (possibly as far east as Tampa...) that allows 24/7 walk-in access and doesn't charge a fortune? I'm looking for a really small amount of bandwidth but I'll need around-the-clock access to the machine.

View 6 Replies View Related

Windows - Realtime File Share Replication

Sep 11, 2009

I'm trying to find a low cost solution for realtime file share replication in a windows environment.

It doesn't look like there are any open source windows cluster filesystems around, so the only viable option I found would be running OpenFiler in a replication cluster on Hyper-V nodes. Has anyone worked with this, does it work reliably?

The required IO throughput on these shares would really be minimal and my biggest concern is 100% availability.

View 1 Replies View Related

Make Site Load Faster Other Than Replication?

May 7, 2008

what can make site load faster other than replication

(well lets assume that design wise it is ok and doesnt content heavy contents...)


i have heard that increasing networking speed at the server level can make site much faster...
is it true..?

is there any tweak bandwidth wise...

suppose we get 1tb bandwidth per month compared to 100gb ...
will that make site faster...

we want to host a photogalley site...which is fast or images are shown in faster way....

View 8 Replies View Related

Cost Effective Service For Daily Dedicated Server Backups?

Aug 13, 2008

Which is the best and cost effective service for daily dedicated server backups?

View 7 Replies View Related

Affortable And Effective Protection Hosting For Application Type DDoS Attack

Jun 23, 2008

Anyone can tell us (from experience) a good hosting company for dedicated servers?

The most important thing for us right now is to stop a DDoS application type attack which seems to be taking place from DC++ peer to peer clients.

View 8 Replies View Related

Load Balancing / File Mirroring & Replication - Microsoft IIS Servers

Jul 30, 2009

Hello, we have a few web servers that run Windows 2003 Server and IIS for web page hosting. We develop custom applications and don't do "web hosting" per se.

What is the best way to do this in a load balanced environment? We have a Cisco load balancer out in front of these servers, but I'm curious about the following:

1) Is there a way to replicate IIS entries instead of having to configure the site on each server?

2) How does everyone handle file replication (hopefully in real time) across all servers?

View 2 Replies View Related

How Effective Can Be Lighttpd 4 My Site ( Forum + Filesharing Site )

Jun 16, 2008

I run basicly run two main site.

1.Forum big one .

2.File and image sharing site.

(image sharing site generates thumbnails which produces lots of hits)

In these conditions how much difference can lighttpd can do as compared to apache for keeping my 600 MB Ram VPS host constant.

View 5 Replies View Related

I Moved Mysql From /var To /backup/mysql, Mysql Is No Longer Working

May 8, 2009

Since my /var partition is full, so I moved /var/lib/mysql to /backup/mysql/.

Seems all the files are copied and I changed my.cnf reboot mysql, but all the web sites using db is not working anymore..

View 4 Replies View Related

Installed MySQL In /usr/local/mysql But Error In /var/lib/mysql

Jan 21, 2007

I installed the MySQL binary packages in /usr/local/mysql/ after removing the MySQL RPM package. MySQL is functioning when I executed /usr/local/mysql/bin/safe_mysqld. I reinstalled MySQL before I installed PHP. When I used a PHP script to access a MySQL database, it outputs an error:

Code:
Warning: mysqli::mysqli() [function.mysqli-mysqli]: (HY000/2002): can't connect to local mysql server through socket /var/lib/mysql/mysql.sock in index.php on line 2
However, I installed MySQL in /usr/local/mysql, not in /var/lib/mysql. How do I fix MySQL?

View 1 Replies View Related

Mysql.sock Gone And Mysql Restart Doesn't Create It

Jun 16, 2008

For some reason mysql wont start, i have tried restarting mysql but it wont, it says FAILED. The mysql.sock file seems to have disappeared and i cannot find it anywhere.

View 5 Replies View Related

How To Restore Mysql Databases From /var/lib/mysql/user_database/ Files Only

Feb 11, 2008

I recently had a harddrive failure and luckliy I can still access certain directories on this failed drive. I can still access the /var/lib/mysql/ directory which holds all the users databases and have backed all these up separately using tar.

Now what I need to know is how do you restore these database files to another server? I tried simply untar'ing one of these to the new servers /var/lib/mysql/ direcotry and it stuffed Mysql up - it went offline. I had to get a cpanel tech to bring Mysql back online.

how can I get these database files to fully work on a new server?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved