Quantcast
Channel: MySQL Forums - Replication
Viewing all articles
Browse latest Browse all 1561

Am I doing this wrong? (no replies)

$
0
0
I just set up replication and it's not working... at least not how I expected. I'm wondering if my whole idea of how replication works is wrong.

Basically, my slave system is significantly less powerful than the master, so I want to cut out ETL processing and cache processing and replicate ONLY CHANGES TO DATA.

On my master server I have two databases, ETL and ODS. I want to replicate only tables in ODS to the slave (I have replicate-do-db=ODS in my.conf.)

1) In the ETL database, there's a lot of data cleanup/processing after "LOAD DATA IN FILE" statements, and then cleaned up data is moved to ODS. This happens pretty much constantly.

2) I have some "Cache" tables (Memory table type) in ODS. On the master server I run update statements for these occasionally. The tables hold data that summarize huge queries (I don't know if this is the best approach, but it works).

My slave doesn't seem to be getting updated data from ETL, and my slave seems to be running these cache update statements.


I guess I'm unclear how replication works. Is replication replicating changes to the data or is it running the exact same SQL statements on the slave. It seems like it's just running the same SQL statements, which is not what I want. Is there a way to do what I'm after (actual data replication)?

Viewing all articles
Browse latest Browse all 1561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>