# Replication factor

**URL:** <https://discuss.aerospike.com/t/replication-factor/5815>\
**Category:** General Discussion\
**Created:** [December 26, 2018, 2:16pm UTC](https://discuss.aerospike.com/t/replication-factor/5815 "2018-12-26T14:16:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanokassa](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/nanokassa/32/1062_2.png) [@nanokassa](https://discuss.aerospike.com/u/nanokassa)\
**Post date:** [December 26, 2018, 2:16pm UTC](https://discuss.aerospike.com/t/replication-factor/5815/1 "2018-12-26T14:16:07Z")

</div>

Hello!

We want to have 1 database on 3 servers. Each one should have 1by1 data. So when we write value to server1 - we want to read this value from server2 and from server3. And if after this - server1 will be shut down - we want to have working server2 and server3. And want to write and read data from server 2 and 3.

Which replication factor we should use?

Thanks

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [December 27, 2018, 5:48pm UTC](https://discuss.aerospike.com/t/replication-factor/5815/2 "2018-12-27T17:48:14Z")

</div>

Well, you would use replication factor 3 which will provide 1 copy on each of the 3 nodes in your cluster. By default, clients will only read from the node owning the master copy of the partition the record belongs to (but this can be changed in the policy configured on the client library side).

There is some documentation on how the distribution is handled on this page: [https://www.aerospike.com/docs/architecture/data-distribution.html](https://www.aerospike.com/docs/architecture/data-distribution.html) and you should read other pages from that same area of our docs to understand how Aerospike works.
