``` javascript
var config = rs.config()
config.members[0].tags = {"dc" : "wschodnie"}
config.members[1].tags = {"dc" : "wschodnie"}
config.members[2].tags = {"dc" : "wschodnie"}
config.members[3].tags = {"dc" : "wschodnie"}
config.members[4].tags = {"dc" : "zachodnie"}
config.members[5].tags = {"dc" : "zachodnie"}
config.members[6].tags = {"dc" : "zachodnie"}
config.settings = {}
config.settings.getLastErrorModes = [{"eachDC" : {"dc" : 2}}]
rs.reconfig(config)
db.products.insertOne( { "_id": 10, "item": "envelopes", "qty": 100, type: "Self-Sealing" }, { writeConcern: { "w" : "eachDC", wtimeout : 1000 } }
);
```