Probably one secondary was syncing from the other. You can check who
is syncing from who by using rs.status() on a secondary and looking at
its syncingTo field.
Say you have P<-S1<-S2 (P=primary, S1 is a secondary syncing from the
primary, S2 is syncing from S1). There isn't a good way of forcing a
secondary to sync from someone else in 2.0 in general, but if you
start compacting S1 and then restart S2, S2 will recalculate who to
sync from and not choose S1 again (because it's in recovering state).
On May 23, 3:54 pm, Andrew Gross <
and...@yipit.com> wrote:
> MongoDB Version: 2.04/2.05 (Machine upgraded after compaction)
> Database Type: Sharded
> Total Shards: 4
> Replication: Replica Set
> RS Members: 3
> Hosting: AWS
> Server Type: m2.2xlarge
>
> During our biweekly maintenance I noticed something strange while
> compacting our secondaries. When I would compact one secondary of a
> replica set I would see the replica lag increase for that server as
> expected. However, I would also see the replica lag increase on the other
> secondary in the replica set in a similar fashion.
>
> <
https://lh4.googleusercontent.com/-ky0HaZ9X1GU/T707nTp98cI/AAAAAAAAAC...>
>
> The graph is a little confusing, but here are the main points.
>
> 1. Shards WickerMan, FaceOff and TheRock all showed a coupled replica
> lag between secondaries.
> 2. The secondary being compacted at the time is the one with the red
> line on the graph.
> 3. Shard ConAir did NOT show the coupled replication lag, although it is