<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3829719423918091225</id><updated>2026-03-24T02:37:25.584+05:30</updated><category term="mongodb"/><category term="nosql"/><category term="installation"/><category term="apache"/><category term="SOLR"/><category term="adminstration"/><category term="apache solr"/><category term="bigdata"/><category term="cassandra"/><category term="comunity version"/><category term="database"/><category term="databases"/><category term="deployment"/><category term="free monitoring"/><category term="linux"/><category term="mongo"/><category term="monitoring"/><category term="replication"/><category term="Byte Ordered Partitioner"/><category term="Consistency levels in  Cassandra"/><category term="DB egines."/><category term="Murmur3 Partitioner"/><category term="NOSQL DB engines"/><category term="PMM"/><category term="PMM server"/><category term="Percona"/><category term="Percona Dashboards"/><category term="Percona Monitoring and Management"/><category term="Prometheus"/><category term="Random Partitioner"/><category term="benchmark"/><category term="cassandra ring"/><category term="cluster"/><category term="concept"/><category term="configuration"/><category term="consistency in casandra"/><category term="data distribution"/><category term="data migration"/><category term="data model"/><category term="db.currentOp()"/><category term="host"/><category term="isntallation"/><category term="journal"/><category term="master"/><category term="migration"/><category term="mongify"/><category term="mongodb replication"/><category term="mongodb storage engines"/><category term="mysql"/><category term="mysql to mongodb"/><category term="nodes"/><category term="operations"/><category term="partitioners"/><category term="performance"/><category term="replica set"/><category term="roles"/><category term="running queries"/><category term="server installation"/><category term="shard"/><category term="sharded cluster"/><category term="shardind"/><category term="slave"/><category term="step by step"/><category term="terminal"/><category term="tokumx"/><category term="tokutek"/><category term="tutorials"/><category term="ubuntu"/><category term="update"/><category term="user"/><category term="users"/><category term="yum"/><title type='text'>JERWIN ROY&#39;S BLOG</title><subtitle type='html'>Knowledge Sharing about Databases</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-2664863328886454348</id><published>2018-11-26T13:07:00.002+05:30</published><updated>2018-11-26T14:09:37.236+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Byte Ordered Partitioner"/><category scheme="http://www.blogger.com/atom/ns#" term="cassandra"/><category scheme="http://www.blogger.com/atom/ns#" term="cassandra ring"/><category scheme="http://www.blogger.com/atom/ns#" term="cluster"/><category scheme="http://www.blogger.com/atom/ns#" term="data distribution"/><category scheme="http://www.blogger.com/atom/ns#" term="data model"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="Murmur3 Partitioner"/><category scheme="http://www.blogger.com/atom/ns#" term="nodes"/><category scheme="http://www.blogger.com/atom/ns#" term="nosql"/><category scheme="http://www.blogger.com/atom/ns#" term="partitioners"/><category scheme="http://www.blogger.com/atom/ns#" term="Random Partitioner"/><title type='text'>Cassandra Data Distribution using Partitioners</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-966a05ae-7fff-eda2-d9b0-7f9d44e3b361&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3qqoB5LD5zBoeqktZS_tAHpxE4yTlRvp7dQTD2kKZ3gDcUQtlpl-Wa_PuC8c8UujwDsr_rm9zclJBm0G24lUULu0zAPhZ1vC_sCTnKOXHfgJA50SamDqJuGZwMl8ti9d5OndiqkYfNOk/s1600/cassandra_intro+%25282%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3qqoB5LD5zBoeqktZS_tAHpxE4yTlRvp7dQTD2kKZ3gDcUQtlpl-Wa_PuC8c8UujwDsr_rm9zclJBm0G24lUULu0zAPhZ1vC_sCTnKOXHfgJA50SamDqJuGZwMl8ti9d5OndiqkYfNOk/s1600/cassandra_intro+%25282%2529.png&quot; /&gt;&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;               Before wading through the partitioners lets have a look how generally data is being distributed in a Cassandra &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;cluster. It includes a ring like a topology between the nodes. Here the data are being broken into tokens and are circulated&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;among the nodes through the Cassandra ring. Data is distributed across the cluster by the value of the token by using the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;hash technique. Based on the value of the tokens the data will be evenly distributed among the cluster. The main advantage &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;of this method is the data retrieval process can be quick based on the token range. Now we can have can see what does a &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;partitioner role in a cluster in detail.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiMajIghCPZyyRBBvs834skqAA5qc9Pa-KvwcpQREjqRBzzA_8f2D5ZEtqRRW7Nc7uMz6jBYt1mOYgFmgLaz219tmQeggGGmA4ySrbkO120uQKERh3KAUYnPUIJXmApjhyphenhyphen_fSgoBdxkFI/s1600/cassandra+node.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiMajIghCPZyyRBBvs834skqAA5qc9Pa-KvwcpQREjqRBzzA_8f2D5ZEtqRRW7Nc7uMz6jBYt1mOYgFmgLaz219tmQeggGGmA4ySrbkO120uQKERh3KAUYnPUIJXmApjhyphenhyphen_fSgoBdxkFI/s320/cassandra+node.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;Partitioners&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;Partitioners allow how row keys should be sorted and how data will be distributed across your nodes in the cluster. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; text-indent: 36pt; white-space: pre;&quot;&gt;The &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; text-indent: 36pt; white-space: pre;&quot;&gt;read/write request to the cluster are evenly distributed when each part of the hash range receives the same number of &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; text-indent: 36pt; white-space: pre;&quot;&gt;tokens on average. Based on the difference in the hash methods partitioners are classified into three types as below:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; text-indent: 36pt; vertical-align: baseline; white-space: pre;&quot;&gt;Murmur3Partitioner&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; text-indent: 36pt; white-space: pre;&quot;&gt;RandomPartitioner&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; text-indent: 36pt; white-space: pre;&quot;&gt;Byte Ordered Partitioner&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;b id=&quot;docs-internal-guid-96a676c3-7fff-14f4-c2f6-743ddcd7507a&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;Murmur3 Partitioner&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;This is the default partitioning strategy for Cassandra. It provides fast hashing and good performance. It &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;uses MurmurHash hash values to distribute the data across the clusters.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;Random Partitioner&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;It involves MD5 hash applied to place the keys on the node ring. An MD5 hash provides a natural way of &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;load balancing keys to nodes. Each data item is mapped to a token by calculating the MD5 hash of its key&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;The disadvantage of this method is that it causes inefficient range queries when keys specified in the range&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;might be in another ring.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;Byte Ordered Partitioner&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;This method involves the distribution of the data lexically by key bytes in an ordered manner. It treats&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt; the data as raw bytes, instead of converting them to strings. This is most likely to use when you want a&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;partitioner that doesn&#39;t want to validate the keys as being strings.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;How to change a Partitioner?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;So based on the need for the application you can choose any one of the above partitioners. In order &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;to apply it make the below change in the &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;cassandra.yaml&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt; file. This file will be generally located in&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-weight: 700; text-indent: 36pt; vertical-align: baseline; white-space: pre;&quot;&gt;conf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; text-indent: 36pt; vertical-align: baseline; white-space: pre;&quot;&gt;directory.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt; So this is all about how a data is distributed among the Cassandra cluster and how partitioner helps more &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;for the sorting of data &amp;amp; retrieving them. Got any queries about partitioners to comment on them.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/2664863328886454348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2018/11/cassandra-data-distribution-using_26.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2664863328886454348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2664863328886454348'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2018/11/cassandra-data-distribution-using_26.html' title='Cassandra Data Distribution using Partitioners'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3qqoB5LD5zBoeqktZS_tAHpxE4yTlRvp7dQTD2kKZ3gDcUQtlpl-Wa_PuC8c8UujwDsr_rm9zclJBm0G24lUULu0zAPhZ1vC_sCTnKOXHfgJA50SamDqJuGZwMl8ti9d5OndiqkYfNOk/s72-c/cassandra_intro+%25282%2529.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Nagercoil, Tamil Nadu, India</georss:featurename><georss:point>8.183285699999999 77.41189959999997</georss:point><georss:box>8.1204156999999988 77.331218599999971 8.2461557 77.492580599999968</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-2019689316403375648</id><published>2018-11-01T13:09:00.001+05:30</published><updated>2018-11-01T13:42:38.698+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="comunity version"/><category scheme="http://www.blogger.com/atom/ns#" term="DB egines."/><category scheme="http://www.blogger.com/atom/ns#" term="free monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="mongo"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb storage engines"/><category scheme="http://www.blogger.com/atom/ns#" term="monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="nosql"/><category scheme="http://www.blogger.com/atom/ns#" term="NOSQL DB engines"/><title type='text'>MongoDB Storage Engines</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJg7AJYO-9e4TF_EEePf7AsEFGrp7YX7G-uZJKvmKVq8_XzXNO8EsyKWD4ezBR9JHQxSqX3rLRqq5emX3Q-MsZwta_uGoXrziu0Ad4JuXgIYDjnLHX9LxyNOoOhRyTwAROoVqo0nHA-xA/s1600/mongo_intro+%252816%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJg7AJYO-9e4TF_EEePf7AsEFGrp7YX7G-uZJKvmKVq8_XzXNO8EsyKWD4ezBR9JHQxSqX3rLRqq5emX3Q-MsZwta_uGoXrziu0Ad4JuXgIYDjnLHX9LxyNOoOhRyTwAROoVqo0nHA-xA/s400/mongo_intro+%252816%2529.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
The storage engine is a vital component for managing and storing data in the memory as well as disk. MongoDB supports multiple storage engines with unique features for better performance. In this blog, we are going to discuss the various storage engines and their features.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Types of Storage Engine:&lt;/strong&gt;&lt;br /&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
Our production workload will be different for each application, some will be writing intensive, some will be read and some required encryption etc. MongoDB provides flexibility to handle such workloads by providing multiple storage engines. Mentioned the storage engines below.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Wired Tiger&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;MMAPv1&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Encrypted&lt;/strong&gt;&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;In-memory&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
Let&#39;s see the key features of each storage engines.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Wired Tiger:&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Wired Tiger (WT) is the default storage engine from mongo 3.0&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
WT storage engine uses document-level concurrency control for write operations so multiple clients can modify different documents of a collection at the same time.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
It uses only intent locks at the global, database and collection levels when the storage engine detects conflicts between two operations, one will incur a write conflict causing MongoDB to transparently retry that operation&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
MongoDB utilizes both the WiredTiger internal cache and the filesystem cache. By default the wired tiger cache will use 50% of RAM minus 1 GB or 256 MB.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Efficient use of CPU cores and RAM&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Allows for more tuning of storage engine than MMAP&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
7 to 10X better write performance&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
80% less storage with compression&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Compression minimizes storage use at the expense of additional CPU.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Collection level data in the WiredTiger internal cache is uncompressed and uses a different representation from the on-disk format.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;calibri&amp;quot; , &amp;quot;candara&amp;quot; , &amp;quot;segoe&amp;quot; , &amp;quot;segoe ui&amp;quot; , &amp;quot;optima&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 16.5px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqrlbU5FSM0CK0fI6mrq0ZEzPUPxv9tgft4ijCo_BcdB2L52ucPIQpY8j0iwPnmLijU_yRPqG6MLE22hns1z9oWqnmXK-BDfqbshBPcM9rkIRvb5M5QVjoeKPzsw-JAHETfa67bcIbFVs/s1600/aDj_4EpYFuVxcb15X5bxE9C9RGp2ePpZOv-ivyHFi-7b3jlKY_lS63-fo0bek9CRhmJAudkKTfZ8axheeKxpVt8KK0P7-GLM19CMs9UfXrIMbruI2QoFjO-lHAKoWkU_Rwcq2Wqs.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqrlbU5FSM0CK0fI6mrq0ZEzPUPxv9tgft4ijCo_BcdB2L52ucPIQpY8j0iwPnmLijU_yRPqG6MLE22hns1z9oWqnmXK-BDfqbshBPcM9rkIRvb5M5QVjoeKPzsw-JAHETfa67bcIbFVs/s400/aDj_4EpYFuVxcb15X5bxE9C9RGp2ePpZOv-ivyHFi-7b3jlKY_lS63-fo0bek9CRhmJAudkKTfZ8axheeKxpVt8KK0P7-GLM19CMs9UfXrIMbruI2QoFjO-lHAKoWkU_Rwcq2Wqs.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;MMAP:&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The MMAP Storage engine uses memory mapped files to store its data&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
A segment of virtual memory which has been assigned a direct byte-for-byte correlation with some portion of a file&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
It is a traditional storage engine that allow great deal of performance for heavy read applications&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Data and indexes are mapped into virtual space&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Data access is placed into RAM&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
When the OS runs out of RAM and an application requests for memory,then it will swap out memory to disk to make space for the newly requested data&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The operating system’s virtual memory subsystem manages MongoDB’s memory&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Deployments with enough memory to fit the application’s working data set in RAM will achieve the best performance.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Encrypted:&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;Available in mongodb enterprise only.&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The default encryption mode that MongoDB Enterprise uses is the AES256-CBC&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
All data files are fully encrypted from a file system&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Unencrypted state in memory and during transmission&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Master keys and database keys are used for encryption&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Data is encrypted with the database keys,master key encrypts the database keys&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Encryption is not a part in replication keys are not replicated&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
In replication data is not natively encrypted over the wire&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Application Level Encryption provides encryption on a per-field or per-document basis within the application layer&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;In-memory:&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
It is available in the enterprise editions starting from version 3.2.6.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Handles ultra high throughput with low latency and high availability&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
In-memory storage engine is part of general availability&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
More predictable and low latency on less in-memory infrastructure&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
Supports high level infrastructure based on zonal sharding&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
MongodB rich query capability and indexing support&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Third-party pluggable storage engines:&lt;/strong&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
MongoDB is providing support for 3rd party storage engines as “modules” that can be independently updated.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
When building MongoDB, any storage engine modules will be automatically detected, configured and integrated in the final binaries.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
The RocksDB storage engine is the first one to use this new module system for their MongoDB storage integration layer&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
RocksDB for MongoDB is based on the key-value store optimized for fast storage.&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; margin-bottom: 10px;&quot;&gt;
It is developed by facebook and designed to handle write-intensive workloads.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Storage Engine application API:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
As mentioned, each application load will be different from other. Choosing the right storage engine will definetly boost the performance. Differentiated storage engine with respect to the workload which helps in choosing the right storage engine.&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; text-align: center;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNJwa2nSREjqf9DAYWCTV019wzeL0o0eA_zTqHngPKbw-NLvNpqlRWGBocGW7Y9EvCZe0u2ZYWy5dRSNn1KvVwumIjZbEIFZpYBt-O_CrbYRJOj0nrbuKBXOIAUR2-CxSF_6wioIs1Xr4/s1600/MONGO_SE1+%25281%2529+%25281%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNJwa2nSREjqf9DAYWCTV019wzeL0o0eA_zTqHngPKbw-NLvNpqlRWGBocGW7Y9EvCZe0u2ZYWy5dRSNn1KvVwumIjZbEIFZpYBt-O_CrbYRJOj0nrbuKBXOIAUR2-CxSF_6wioIs1Xr4/s400/MONGO_SE1+%25281%2529+%25281%2529.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Comparison chart:&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px;&quot;&gt;
The overall feature comparison for all the storage engines are listed below:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; font-family: Calibri, Candara, Segoe, &amp;quot;Segoe UI&amp;quot;, Optima, Arial, sans-serif; font-size: 16.5px; margin-bottom: 10px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilZkv-NZhWsTfpbdEHZmmLiBjSIhy52P45cmZaRHQ_iQtxkV3YWbi2ukjdsc0tQ62qAtXfvNduKxLIA-PL49tKnRC67hdSZZVrK6QywzHH8sgf-Gw7oYA0t_CBEisOoHsibGwyfAGSqJc/s1600/pasted+image+0+%25281%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;288&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilZkv-NZhWsTfpbdEHZmmLiBjSIhy52P45cmZaRHQ_iQtxkV3YWbi2ukjdsc0tQ62qAtXfvNduKxLIA-PL49tKnRC67hdSZZVrK6QywzHH8sgf-Gw7oYA0t_CBEisOoHsibGwyfAGSqJc/s640/pasted+image+0+%25281%2529.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/2019689316403375648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2018/11/mongodb-storage-engines.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2019689316403375648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2019689316403375648'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2018/11/mongodb-storage-engines.html' title='MongoDB Storage Engines'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJg7AJYO-9e4TF_EEePf7AsEFGrp7YX7G-uZJKvmKVq8_XzXNO8EsyKWD4ezBR9JHQxSqX3rLRqq5emX3Q-MsZwta_uGoXrziu0Ad4JuXgIYDjnLHX9LxyNOoOhRyTwAROoVqo0nHA-xA/s72-c/mongo_intro+%252816%2529.png" height="72" width="72"/><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-5428521554358264165</id><published>2018-11-01T12:51:00.002+05:30</published><updated>2018-11-01T12:51:54.960+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="comunity version"/><category scheme="http://www.blogger.com/atom/ns#" term="free monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="mongo"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="nosql"/><title type='text'>MongoDB Free monitoring on Community version 4.0 explained</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXBZ2n1NaMH_tt44kEjt1SoFatE5uhyphenhyphen2AdrPRYbOSEcGoz1rAxDNHb4ce8PB-XXbXEOpi56-7ijB14EexDsxDZRzRxVnmlxRD3vlMnuJ2WTens27KBSqisjZsm5olBJL7EJneM_dX4x94/s1600/mongo_intro+%252813%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXBZ2n1NaMH_tt44kEjt1SoFatE5uhyphenhyphen2AdrPRYbOSEcGoz1rAxDNHb4ce8PB-XXbXEOpi56-7ijB14EexDsxDZRzRxVnmlxRD3vlMnuJ2WTens27KBSqisjZsm5olBJL7EJneM_dX4x94/s320/mongo_intro+%252813%2529.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;I was just playing around with MongoDB 4.0 community version &amp;amp; noticed a feature called free monitoring. In this article let have a detailed look of free monitoring, how to enable, check status and what are the monitoring metrics that are provided by MongoDB.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Free Monitoring:&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Free monitoring is a service that is available in the MongoDB 4.0 Community versions. It provides us with some graphical/statistical data related to currently deployed instances which expire after 24 hours. So let&#39;s have a look how can we enable free monitoring &amp;amp; look at what is in it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Enabling Monitoring:&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;This command enabled the free monitoring in the instance, one-time enabling is enough it is not necessary to enable each time to check the status.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background: #F3F6F8; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-GB&quot;&gt;db.enableFreeMonitoring()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Check Monitoring status:&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;In order to check the current free monitoring status the above command which let us know the status. When once enabled, the monitored data is uploaded periodically to the cloud &amp;amp; it can be accessed via browsers through the provided URL.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background: #F3F6F8; vertical-align: baseline;&quot;&gt;&lt;span lang=&quot;EN-GB&quot;&gt;db.getFreeMonitoringStatus()&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Graph options:&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Let&#39;s have a look over the various graph parameters that are included in the free monitoring.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Operation Execution:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;This lists out the how many times the operations are being executed in the server. Operations include reads, writes &amp;amp; commands.&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_GoBack&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Disk Utilization:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Every disk has its own read &amp;amp; write speed. Disk utilization involves the sum of the total speed of data that is being written to and read from the disk. This graph plots out the maximum &amp;amp; average disk used by the drives.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Documents:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;This returns the stats of the documents that are returned, inserted, updated &amp;amp; deleted&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Memory:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;MongoDB uses virtual as well as the resident memory. Resident memory is the memory that is used by RAM. In some cases, the operating system returns the imaginary address when MongoDB requests for memory address which is not real. If the journal is enabled then it returns another address for journal data, both together is the Virtual memory. Journal reference memory alone is known as the mapped memory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Network IO:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;This refers to the total network traffic that is being received and sent by MongoDB in bytes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Opcounters&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Opcounters are nothing but the total list of the operations count that is being performed by the server. It included the operations such as insert, query, update, delete,getmore, commands.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Replicated Opcounters:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;This refers the opcounters that are being replicated to the other secondaries in the replica cluster. The value of replicated opcounters will be present only if the instance is a replica set.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Query Targeting:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;This chart depicts the query &amp;amp; objects that are scanned by the process.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Queue&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;This parameter lists out the total number of reads,writes that are currently waiting under the queue or waiting for any other lock.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;System CPU usage:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;It explains about the complete system CPU usage with respect to the some of the specialized factors.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/5428521554358264165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2018/11/mongodb-free-monitoring-on-community.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/5428521554358264165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/5428521554358264165'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2018/11/mongodb-free-monitoring-on-community.html' title='MongoDB Free monitoring on Community version 4.0 explained'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXBZ2n1NaMH_tt44kEjt1SoFatE5uhyphenhyphen2AdrPRYbOSEcGoz1rAxDNHb4ce8PB-XXbXEOpi56-7ijB14EexDsxDZRzRxVnmlxRD3vlMnuJ2WTens27KBSqisjZsm5olBJL7EJneM_dX4x94/s72-c/mongo_intro+%252813%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-7886592464445714907</id><published>2018-11-01T12:51:00.001+05:30</published><updated>2018-11-01T12:51:29.889+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="bigdata"/><category scheme="http://www.blogger.com/atom/ns#" term="cassandra"/><category scheme="http://www.blogger.com/atom/ns#" term="consistency in casandra"/><category scheme="http://www.blogger.com/atom/ns#" term="Consistency levels in  Cassandra"/><category scheme="http://www.blogger.com/atom/ns#" term="databases"/><category scheme="http://www.blogger.com/atom/ns#" term="nosql"/><title type='text'>Consistency levels in Apache Cassandra explained</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ2vzWquc_CRTeX3W-VEt6nX85N3gboWx8bkttEwd3l6MfP0XdPMITSTOiPX6esxGeq2MpAP6y5xt8XiqZzIc8_vRiO4X0shpmg-y-PLQsfbKJShk4_nZFsmt14LkyVVnBGNHoss1JNbQ/s1600/mongo_intro+%252814%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;95&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ2vzWquc_CRTeX3W-VEt6nX85N3gboWx8bkttEwd3l6MfP0XdPMITSTOiPX6esxGeq2MpAP6y5xt8XiqZzIc8_vRiO4X0shpmg-y-PLQsfbKJShk4_nZFsmt14LkyVVnBGNHoss1JNbQ/s320/mongo_intro+%252814%2529.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Cassandra is scalable column-oriented open source NoSQL database. It is the right choice for managing large amounts of structured, semi-structured, and unstructured data across multiple data centers when you need scalability and high availability without compromising performance. In this article, we are going to discuss how the read/write operations are maintained in a cluster and various consistency levels in Cassandra &amp;amp; how can they be applied to our business applications.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;According to &lt;/span&gt;&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;CAP theorem&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;, it is impossible for a distributed system to simultaneously provide all three guarantees:&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-border-alt: none windowtext 0cm; mso-hansi-theme-font: minor-latin; padding: 0cm;&quot;&gt;Consistency -&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;Every node contains same data at the same time&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-border-alt: none windowtext 0cm; mso-hansi-theme-font: minor-latin; padding: 0cm;&quot;&gt;Availability- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;At least one node must be available to serve data every time&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; vertical-align: baseline;&quot;&gt;&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-border-alt: none windowtext 0cm; mso-hansi-theme-font: minor-latin; padding: 0cm;&quot;&gt;Partition tolerance -&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;Failure of the system is very rare&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&quot;Cassandra is typically classified as an &lt;/span&gt;&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;AP system&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;, meaning that availability and partition tolerance are generally considered to be more important than consistency in Cassandra. But Cassandra can be tuned with replication factor and consistency level to also meet C.So Cassandra is eventually consistent.&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;margin-top: 0cm; vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; line-height: 115%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Replication factor:&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Before deep diving into the consistency levels its necessary to understand the term replication factor. It describes how many copies of your data exist. Based on the RF &amp;amp; the consistency levels it is easy to design a very good stable architecture in Cassandra.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;The below terms explains how the write/read transactions serve its purpose:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Commit log&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt; − The commit log is a crash-recovery mechanism in Cassandra. Every write operation is written to the commit log.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Mem-table&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt; − A mem-table is a memory-resident data structure. After commit log, the data will be written to the mem-table. Sometimes, for a single-column family, there will be multiple mem-tables.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;SSTable&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt; − It is a disk file to which the data is flushed from the mem-table when its contents reach a threshold value&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;margin-top: 0cm; vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; line-height: 115%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Write path in Cassandra:&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;When a write is initiated its first captured by the commit logs. Later the data will be captured and stored in the mem-table. Whenever the mem-table is full, data will be written into the SStable data file. All writes are automatically partitioned and replicated throughout the cluster. Cassandra periodically consolidates the SSTables, discarding unnecessary data.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;img height=&quot;16&quot; id=&quot;j977s0ln7wxe&quot; src=&quot;data:image/gif;base64,R0lGODlhEAAQAOUdAOvr69HR0cHBwby8vOzs7PHx8ff397W1tbOzs+Xl5ebm5vDw8PPz88PDw7e3t+3t7dvb2+7u7vX19eTk5OPj4+rq6tbW1unp6bu7u+fn5+jo6N/f3+/v7/7+/ra2ttXV1f39/fz8/Li4uMXFxfb29vLy8vr6+sLCwtPT0/j4+PT09MDAwL+/v7m5ubS0tM7OzsrKytra2tTU1MfHx+Li4tDQ0M/Pz9nZ2b6+vgAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFMAA5ACwAAAAAEAAQAAAGg8CcMAcICAY5QsEwHBYPCMQhl6guGM5GNOqgVhMPbA6y5Xq/kZwkN3Fsu98EJcdYKCo5i7kKwCorVRd4GAg5GVgAfBpxaRtsZwkaiwpfD0NxkYl8QngARF8AdhmeDwl4pngUCQsVHDl2m2iveDkXcZ6YTgS3kAS0RKWxVQ+/TqydrE1BACH5BAkwADkALAAAAAAQABAAAAZ+wJwwJ1kQIgNBgDMcdh6KRILgQSAOn46TIJVSrdZGSMjpeqtgREAoYWi6BFF6xCAJS6ZyYhEIUwxNQgYkFxwBByh2gU0kKRVHi4sgOQuRTRJtJgwSBJElihwMQioqGmw5gEMLKk2AEkSBq4ElQmNNoYG2OVpDuE6Lrzmfp0NBACH5BAUwADkALAAAAAAQABAAAAaFwJwwJ1kQCDlCwTAcMh6KhDQnVSwYTkJ1un1gc5wtdxsh5iqaLbVKyVEWigq4ugZgTyiA9CK/JHIZWCsICCxpVWV/EzkHhAgth1UPQ4OOLXpScmebFA6ELHAZclBycXIULi8VZXCZawplFG05flWlakIVWravCgSaZ1CuksBDFQsAcsfFQQAh+QQJMAA5ACwAAAAAEAAQAAAGQcCccEgsGo/IpHLJzDGaOcKCCUgkAEuFNaFRbq1dJCxX2WKRCFdMmJiiEQjRp1BJwu8y5R3RWNsRBx9+SSsxgzlBACH5BAkwADkALAAAAAAQABAAAAaJwJwwJ1kQCDlCwTAcMh6KhDQnVSwYTkJ1un1gc5wtdxsh5iqaLbVKyTEWigq4ugZglRXpRX5J5DJYAFIAaVVlfhNrURqFVQ9DYhqCgzkzCGdnVQBwGRU0LQiXCRUAORQJCwAcOTChoYplBXIKLq6vUXRCCQ22olUEcroJB66KD8FNCjUrlxWpTUEAIfkEBTAAOQAsAAAAABAAEAAABobAnDAnWRAIOULBMBwyHoqENCdVLBhOQnW6fWBznC13G8nZchXNllql5Bg2xA1cZQOwShwCMdDkLgk5GVgAUgAie3syVDkTbFIaiIkIJ0NiGnp7HiNonRVVAHEuFjlQFVQVAI0JCzYjrKCPZQWnf1unYkMVWrFbBLVoUIaPD8C6CwCnAMhNQQA7&quot; width=&quot;16&quot; /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOykhv7RYTpNlQTXbKEGc6FoEWDHXGgIpa1Ejr5z46Yz-pbOHsuycd8hujOWD2dEvjn3XKzimXT23upAF9zVPtd0wYg3KOzeGZHoMYGHIhvliIrUasq-L9i1KjRSyO1tuigbD9b-mrxf0/s1600/write+path.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOykhv7RYTpNlQTXbKEGc6FoEWDHXGgIpa1Ejr5z46Yz-pbOHsuycd8hujOWD2dEvjn3XKzimXT23upAF9zVPtd0wYg3KOzeGZHoMYGHIhvliIrUasq-L9i1KjRSyO1tuigbD9b-mrxf0/s320/write+path.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;margin-top: 0cm; vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; line-height: 115%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Read path in Cassandra:&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;For any read operations first, the values are fetched from the mem table and then Cassandra checks the bloom filter(cache) to find the appropriate SSTable that holds the required data.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center; vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSPKejXeiW_sjqInsuL_opcYit-W6DXRECis9ou8GHRSNG5Zw8gGzuDWD4wLg8I3JKCbKvigB04rQGk0j7R59Yq9_HujvfN-jE5xb-vh49EPKjh2VGDpWTcbftdcDz3uAn1iNbRDcJIBU/s1600/read+path.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;123&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSPKejXeiW_sjqInsuL_opcYit-W6DXRECis9ou8GHRSNG5Zw8gGzuDWD4wLg8I3JKCbKvigB04rQGk0j7R59Yq9_HujvfN-jE5xb-vh49EPKjh2VGDpWTcbftdcDz3uAn1iNbRDcJIBU/s320/read+path.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;margin-top: 0cm; vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; line-height: 115%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Consistency Levels :&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Consistency levels are used to manage the data consistency versus data availability. Below are the various levels of consistency that can be set to achieve the data consistency in the DB:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;ALL- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;Writes/Reads must be written to the commit log and memtable on all in the cluster.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;EACH_QUORUM- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;Writes/Reads must be written to the commit log and memtable on each quorum of nodes. Quorum is 51% of the nodes in a cluster.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;QUORUM- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;Writes/Reads must be written to the commit log and memtable on a quorum of nodes across all data centers.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;LOCAL_QUORUM- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;Writes/Reads must be written to the commit log and memtable on a quorum of nodes in the same datacenter as the coordinator.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;ONE- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;Writes must/Reads be written to the commit log and memtable of at least one node.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;TWO&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;- Writes/Reads must be written to the commit log and memtable of at least two nodes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;THREE- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;Writes/Reads must be written to the commit log and memtable of at least three nodes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;LOCAL_ONE- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;Writes/Reads must be sent to and successfully acknowledged by, at least one node in the local datacenter.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;ANY- &lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot;&gt;Writes/Reads must be written to at least one node.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;margin-top: 0cm; vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 15.0pt; line-height: 115%; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;How to calculate the DB impact based on these parameters?&lt;/span&gt;&lt;/strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-family: &amp;quot;Helvetica&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Its very easy to calculate the DB impacts for any given RF &amp;amp; read, write Consistency levels. For example, say let us set up a 5 node cluster with 3 RF, Read &amp;amp; Write Consistency level as quorum then the impact would be as below:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;1.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;Your reads are consistent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;2.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;You can survive the loss of 1 node without impacting the application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;3.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;You can survive the loss of 1 node without data loss.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;4.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;You are really reading from 2 nodes every time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;5.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;You are really writing to 2 nodes every time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;6.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;Each node holds 60% of your data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;The same cluster scenario with Read &amp;amp; Write Consistency level as ONE will have the below impact.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;1.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;Your reads are eventually consistent&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;2.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;You can survive the loss of 2 nodes without impacting the application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;3.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;You can survive the loss of no nodes without data loss.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;4.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;You are really reading from 1 node every time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;5.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;You are really writing to 1 node every time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: 36.0pt; mso-list: l0 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-indent: -18.0pt; vertical-align: baseline;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;6.&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;font-size: 15.0pt;&quot;&gt;Each node holds 60% of your data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;Thus the Cassandra cluster architecture can be defined according to our own business need with the optimal use of the resources to yield high performance.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt;Credits:&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span lang=&quot;EN-GB&quot; style=&quot;border: none windowtext 1.0pt; font-size: 15.0pt; mso-border-alt: none windowtext 0cm; padding: 0cm;&quot;&gt; You can use this Cassandra Parameters for Dummies to find out the impact: https://www.ecyrd.com/cassandracalculator/&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;vertical-align: baseline;&quot;&gt;
&lt;span lang=&quot;EN-GB&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/7886592464445714907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2018/11/consistency-levels-in-apache-cassandra.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/7886592464445714907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/7886592464445714907'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2018/11/consistency-levels-in-apache-cassandra.html' title='Consistency levels in Apache Cassandra explained'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ2vzWquc_CRTeX3W-VEt6nX85N3gboWx8bkttEwd3l6MfP0XdPMITSTOiPX6esxGeq2MpAP6y5xt8XiqZzIc8_vRiO4X0shpmg-y-PLQsfbKJShk4_nZFsmt14LkyVVnBGNHoss1JNbQ/s72-c/mongo_intro+%252814%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-7807858441179732816</id><published>2018-02-15T12:18:00.002+05:30</published><updated>2018-11-01T11:54:36.495+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="adminstration"/><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="apache solr"/><category scheme="http://www.blogger.com/atom/ns#" term="configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="deployment"/><category scheme="http://www.blogger.com/atom/ns#" term="isntallation"/><category scheme="http://www.blogger.com/atom/ns#" term="replication"/><category scheme="http://www.blogger.com/atom/ns#" term="SOLR"/><category scheme="http://www.blogger.com/atom/ns#" term="step by step"/><title type='text'>Apache solr replication step by step</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3gT6lVt98PLO4IboazSz4ub4hVQs3HUdhyOPZszlCj0dT6pZqAI4dBZgY3ImoCA4w4rwgbM_mHMPbf-mwsGZmenNFnFGV8D0PymEyh-xz1yYDJ0u8b4a4O1AYylH8-HA9f8obix7CoBs/s1600/mongo_intro+%25281%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3gT6lVt98PLO4IboazSz4ub4hVQs3HUdhyOPZszlCj0dT6pZqAI4dBZgY3ImoCA4w4rwgbM_mHMPbf-mwsGZmenNFnFGV8D0PymEyh-xz1yYDJ0u8b4a4O1AYylH8-HA9f8obix7CoBs/s400/mongo_intro+%25281%2529.png&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Need for Replication :&lt;/b&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;When there is a large search volume that cannot be handled by a single machine, so you need to distribute searches across multiple read-only copies of the index.&lt;/li&gt;
&lt;li&gt;If there is a high volume of indexing which consumes machine resources and reduces search performance on the indexing machine, so you need to separate indexing and searching.&lt;/li&gt;
&lt;li&gt;When we want to make a backup of the index&lt;/li&gt;
&lt;/ul&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;text-align: center;&quot;&gt;&lt;b&gt;MASTER-SLAVE&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b style=&quot;text-align: center;&quot;&gt; &lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-9829-2aa5-474a-fcc6bfb9c90e&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;202&quot; src=&quot;https://lh4.googleusercontent.com/elg0e5AJN2guSaK61q6zOp39KSq6GQjvzqQ7OceZT5D3Q8g3Pd6KgK1_rLsFI3bCii2IbZFEbeHSqXbL5DNxvi2-L43MLJjkEP0786OT7kmJWlR_cQuJE2E72RBxQuMhcSe7Wc7a&quot; style=&quot;border: none; transform: rotate(0rad);&quot; width=&quot;238&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Distributes complete copies of a master index to one or more slave servers.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The master server continues to manage updates to the index.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;All querying is handled by the slaves.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;This enables Solr to scale to provide adequate responsiveness to queries against large search volumes.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;Replication Terminology:&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Index&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
A Lucene index is a directory of files. These files make up the searchable and returnable data of a Solr Core.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Distribution&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
The copying of an index from the master server to all slaves.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Inserts and Deletes&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;As inserts and deletes occur in the index, the directory remains unchanged. Documents are always inserted into newly created files.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Documents that are deleted are not removed from the files.&lt;/li&gt;
&lt;li&gt;They are flagged in the file, deletable and are not removed from the files until the index is optimized.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Master and Slave&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;A Solr replication master is a single node which receives all updates initially and keeps everything organized.&lt;/li&gt;
&lt;li&gt;Solr replication slave nodes receive no updates directly, instead all changes (such as inserts, updates, deletes, etc.) are made against the single master node.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Changes made on the master are distributed to all the slave nodes which service all query requests from the clients.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Repeater&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
A node that acts as both a master and a slave.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;Optimization&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;A process that compacts the index and merges segments in order to improve query performance.&lt;/li&gt;
&lt;li&gt;Optimization should only be run on the master nodes. An optimized index may give query performance gains compared to an index that has become fragmented over a period of time with many updates.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Distributing an optimized index requires a much longer time than the distribution of new segments to an un-optimized index&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Snapshot&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
A directory containing hard links to the data files of an index. Snapshots are distributed from the master nodes when the slaves pull them, &quot;smart copying&quot; any segments the slave node does not have in snapshot directory that contains the hard links to the most recent index data files.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Configuring the Replication RequestHandler on a Master Server:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;commit&lt;/b&gt;-Triggers replication whenever a commit is performed on the master index.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;optimize&lt;/b&gt;-Triggers replication whenever the master index is optimized.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;startup&lt;/b&gt;-Triggers replication whenever the master index starts up.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;u&gt;MASTER SLAVE CONFIGURATION&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;MASTER&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The configuration of the master are configured in the below file.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;vim /var/solr/data/fortis/conf/solrconfig.xml&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_-KX3Qglp5A438bL7QnO0Fjhd3cjfzzBQeXUJsqoIIHLACB9WHyzYMnnUgl-AgzzK9WTWDItv0VhrvkAREBBJ8Ph4LCbUjniXqoZOpSDctdVj96259CPKcAh8KQTBRV8wnd2R6akkANI/s1600/c1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;350&quot; data-original-width=&quot;656&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_-KX3Qglp5A438bL7QnO0Fjhd3cjfzzBQeXUJsqoIIHLACB9WHyzYMnnUgl-AgzzK9WTWDItv0VhrvkAREBBJ8Ph4LCbUjniXqoZOpSDctdVj96259CPKcAh8KQTBRV8wnd2R6akkANI/s1600/c1.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;vim /var/solr/data/fortis/core.properties&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Make the below changes in the core.properties file&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;enable.master=true&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;enable.slave=false&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;SLAVE&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To create a new collection use the below command&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;/usr/local/solr-6.6.2/bin/solr create -c prod&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
The configuration of the master are configured in the below file.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;vim /var/solr/data/fortis/conf/solrconfig.xml&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPssMh-9SSpe6rOjGCH98r0Ob0EjXujwVqH4_IK2Y1P9F5o0Vf8AHPex5KBbwF5wmzqTWDNMHX6pXB8H91T9X1X1Td8TFKrO0P6FhKU9bAzhWmlL4qH0Pl0lHpSy4TKTeIx6wCtJzYj_o/s1600/c2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;409&quot; data-original-width=&quot;648&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPssMh-9SSpe6rOjGCH98r0Ob0EjXujwVqH4_IK2Y1P9F5o0Vf8AHPex5KBbwF5wmzqTWDNMHX6pXB8H91T9X1X1Td8TFKrO0P6FhKU9bAzhWmlL4qH0Pl0lHpSy4TKTeIx6wCtJzYj_o/s1600/c2.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
Make the below changes in the core.properties file&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;vim /var/solr/data/fortis/core.properties&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;enable.master=false&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;enable.slave=true&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Now we have setup the master-slave replication in the apache solr.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/7807858441179732816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2018/02/apache-solr-replication-step-by-step.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/7807858441179732816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/7807858441179732816'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2018/02/apache-solr-replication-step-by-step.html' title='Apache solr replication step by step'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3gT6lVt98PLO4IboazSz4ub4hVQs3HUdhyOPZszlCj0dT6pZqAI4dBZgY3ImoCA4w4rwgbM_mHMPbf-mwsGZmenNFnFGV8D0PymEyh-xz1yYDJ0u8b4a4O1AYylH8-HA9f8obix7CoBs/s72-c/mongo_intro+%25281%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-2230940140592562107</id><published>2017-11-27T18:30:00.002+05:30</published><updated>2018-11-01T13:47:02.146+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="apache solr"/><category scheme="http://www.blogger.com/atom/ns#" term="deployment"/><category scheme="http://www.blogger.com/atom/ns#" term="installation"/><category scheme="http://www.blogger.com/atom/ns#" term="SOLR"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><title type='text'>Apache SOLR introduction &amp; installation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheWnoy50NbHYZWShxppK53KT9xH2UVcgNoDtphnC-8KXvvnTGCS0jYDSW6MfN3Tr20K5tecgshhD18b04eYWDmz-lKveYb-bjL9nIDXn39Djt6aUWSfU2745z_JnUOQUqhVsHQpwF4f98/s1600/mongo_intro+%25284%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheWnoy50NbHYZWShxppK53KT9xH2UVcgNoDtphnC-8KXvvnTGCS0jYDSW6MfN3Tr20K5tecgshhD18b04eYWDmz-lKveYb-bjL9nIDXn39Djt6aUWSfU2745z_JnUOQUqhVsHQpwF4f98/s320/mongo_intro+%25284%2529.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
In this post, we are going to discuss about Apache Solr and how to install them step by step.&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;Why Solr?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt; &lt;span id=&quot;docs-internal-guid-a0d893a9-9817-b064-94ec-5080d6928cd4&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;329&quot; src=&quot;https://lh3.googleusercontent.com/lbvLqX-gzH3f6NKO8N-AHpgHXK-UsfJ5aR64nUfMAWmoWvNXJod-tULgFEZke7ig3wWPjuRrqVX4hr-uVvNJE1LzIZ9yhKD1C9y7bsd83xZ7BF9iOm1yuOsnpfDsKcZzP9GI9DhV&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt; &lt;b&gt;Lucene:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Search storage engine&lt;/li&gt;
&lt;li&gt;Solr uses concepts derived from Lucene&lt;/li&gt;
&lt;li&gt;Lucene is widely used in many projects among one of them is solr&lt;/li&gt;
&lt;li&gt;Used to index &amp;amp; search with high performance.&lt;/li&gt;
&lt;li&gt;Solr uses lucene as its backend&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Solr:&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Search server&lt;/li&gt;
&lt;li&gt;Document oriented&lt;/li&gt;
&lt;li&gt;Stores data &amp;amp; indexing&lt;/li&gt;
&lt;li&gt;Searches including full-text search, stemming,hit-highlighting, faceted-search etc that cannot done by native databases&lt;/li&gt;
&lt;li&gt;Vertically and horizontally scalable&lt;/li&gt;
&lt;li&gt;Replication for high availability&lt;/li&gt;
&lt;li&gt;Sharding for distributed search&lt;/li&gt;
&lt;li&gt;Performs in memory,grouping,counting,similar products in single shot&lt;/li&gt;
&lt;li&gt;Exposed over HTTP,REST like api.&lt;/li&gt;
&lt;li&gt;The DataImportHandler provides a configuration driven way to import data from relational databases or XML files, into Solr in both “full import” and “incremental delta import” mode.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;INVERTED INDEX:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Searches document by unique word&lt;/li&gt;
&lt;li&gt;Similar to the index back of back&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
D1- I like Apache services.&lt;br /&gt;
D2- They include all kind of database &amp;amp; services support.&lt;br /&gt;
D3- I would recommend their services to my clients too.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;Working:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Define a schema.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Deploy Solr.&lt;/li&gt;
&lt;li&gt;Feed Solr documents for which your users will search.&lt;/li&gt;
&lt;li&gt;Expose search functionality in your application.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solr schema:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;No schema&lt;/li&gt;
&lt;li&gt;Has index that contain docs&lt;/li&gt;
&lt;li&gt;Fields are used to index,search &amp;amp; store&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981b-e413-62da-1f9db6c82326&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;286&quot; src=&quot;https://lh5.googleusercontent.com/KzwPEY7xMaQUmFbdCULxJSIWFvXlS9lYWMnDv3myE1g1HXE_8EV5_tB0681Q8O44iSC6Uc33fMqKXmDAWxO8LzZnyYAf2fAi4z_09NQalKrduzzzNeFDkWYdi3nFgsqaB6Te_hA9&quot; style=&quot;border: none; transform: rotate(0rad);&quot; width=&quot;546&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div&gt;
&lt;b&gt;Define a schema&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
The schema tells Solr about the contents of documents it will be indexing. In the online store example, the schema would define fields for the product name, description, price, manufacturer, and so on.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Defining fields:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;field default=&quot;0.0&quot; indexed=&quot;true&quot; name=&quot;price&quot; stored=&quot;true&quot; type=&quot;float&quot;&gt;&lt;/field&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Indexing:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Indexing is a technique of adding Document’s content to Solr Index so that we can search them easily. Apache Solr uses Apache Lucene Inverted Index technique to Index it’s documents. That’s why Solr provides very fast searching feature.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Field analyzers&lt;/b&gt;: (Analyzer=tokenizer+filters)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;Used both during ingestion, when a document is indexed, and at query time.Analyzers may be a single class or series of tokenizer and filter classes.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt; &lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;Alternative words-finish,complete&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;misspelled-google,gogle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Tokenizers:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;Break field data into lexical units, or tokens.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;Pre- Stripping html tags&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;Post-Stemming(replace) tables as collection&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Stop word filter (the,is,and)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;Filters:&lt;/b&gt;(used for indexing)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Examine a stream of tokens and keep them, transform or discard them, or create new ones.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Tokenizers and filters may be combined to form pipelines, or chains, where the output of one is input to the next.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Such a sequence of tokenizers and filters is called an analyzer and the resulting output of an analyzer is used to match query results or build indices.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;eg)ram,RAM,Ram&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-3fda-3dfe-d7d27f5482a7&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-3fda-3dfe-d7d27f5482a7&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 18pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Deploying Solr&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-3fda-3dfe-d7d27f5482a7&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-3fda-3dfe-d7d27f5482a7&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Pre requisites:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-3fda-3dfe-d7d27f5482a7&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-3fda-3dfe-d7d27f5482a7&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;yum update&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-3fda-3dfe-d7d27f5482a7&quot;&gt; &lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;yum install java-1.8.0-openjdk.x86_64&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;java -version&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Installation&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;wget &lt;/span&gt;&lt;a href=&quot;http://apache.org/dist/lucene/solr/6.6.1/solr-6.6.1.tgz&quot; style=&quot;text-decoration-line: none;&quot;&gt;&lt;span style=&quot;color: #1155cc; font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;http://apache.org/dist/lucene/solr/6.6.1/solr-6.6.1.tgz&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;margin-left: 0pt;&quot;&gt;
tar zxvf solr-6.6.1.tgz&lt;br /&gt;
cp /opt/solr-6.6.1/bin/install_solr_service.sh .&lt;br /&gt;
rm -rf solr-6.6.1&lt;br /&gt;
./install_solr_service.sh solr-6.6.1.tgz&lt;br /&gt;
ps -ef | grep solr&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial; font-size: 11pt; text-align: center; white-space: pre-wrap;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-6ae7-9a8d-392b4f2cf7d7&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;212&quot; src=&quot;https://lh3.googleusercontent.com/sInn2kWIt_I2TTAiqK7k9wq8VQGi8XOwpHDG299r9Uj8H5KbeWHzkSHwVA4sqcGpA8_Qnx-aMrpnkHJl6y2biDiToCQaYjFRmmJjPRV4nyejjy4x6_4FyUKApxmDaP6V0TYDHXJf&quot; style=&quot;border: none; transform: rotate(0rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;
&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 14.6667px; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;b&gt;Feed Solr documents for which your users will search

Creating a project(core):
&lt;/b&gt;A Core is an Index of texts and fields available in all documents. One Solr Instance can contain one or more Solr Cores.
&lt;b&gt;/opt/solr-6.6.1/bin/solr  create -c jerwin

Create new document :
&lt;/b&gt;We can create a new document to the core with 3 fields and value using the below command on the terminal using curl:&lt;b&gt;

curl http://localhost:8983/solr/jerwin/update -d &#39;
[
 {&quot;id&quot; : &quot;db1&quot;,
  &quot;company_name&quot; : &quot;Mafiree&quot;,
  &quot;location&quot; : &quot;Nagercoil&quot;
 }
]&#39;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981d-e1ee-fcaf-75272a22af21&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;126&quot; src=&quot;https://lh5.googleusercontent.com/Z8WveJ1C1AostpCIYgv-mOd6aQ8wYog0j5FI9XEQuiNGhruGocceyvMGbDIS911T2Jt94W-2jTKe-MyeNEToR0HRmbNQkW4Kuirjdo5hh-c6nxKcF7QdK1leL49xYxgi1INH4qW7&quot; style=&quot;border: none; transform: rotate(0rad);&quot; width=&quot;595&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981e-04d9-36a0-51af42179684&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981e-04d9-36a0-51af42179684&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;View&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981e-04d9-36a0-51af42179684&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981e-04d9-36a0-51af42179684&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;The inserted data can be viewed with the id specified.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981e-04d9-36a0-51af42179684&quot;&gt; &lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;curl &lt;/span&gt;&lt;span style=&quot;color: #1155cc; font-family: &amp;quot;courier new&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;a href=&quot;http://localhost:8983/solr/jerwin/get?id=db1&quot; style=&quot;text-decoration-line: none;&quot;&gt;http://localhost:8983/solr/jerwin/get?id=db1&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981e-1bb9-f263-c428fd23096f&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;126&quot; src=&quot;https://lh3.googleusercontent.com/d9KYuwV9hk8bn2J-jNmMZmetHmvauaxYXqFKCw4_qx_tXfu8X6UnzoSqDkUrICEiwgXLkjsDQb6rOXY_YZN71iu2-lJM-AmBi7s2GeiJs7awQR_v4KbEenefjr7jLYA0t5rSLVTm&quot; style=&quot;border: none; transform: rotate(0rad);&quot; width=&quot;571&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px; white-space: pre-wrap;&quot;&gt;Output can be viewed in the browser:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;&quot;&gt; &lt;div style=&quot;font-family: Arial; font-size: 11pt; text-align: center; white-space: pre-wrap;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-a0d893a9-981e-4bbf-1124-1070f602a620&quot;&gt;&lt;img height=&quot;170&quot; src=&quot;https://lh5.googleusercontent.com/r4XwW6LVP_LBosPwHs4x-ijcx46Eml-_NOFl9VC5N6zrDs-_wA2MYeZZQ5Wm5jzjZQjB0Fi-vdG4869BOveY6UlhYTZTl4oOxjNFAntHAo02OiSwimGrHU3p5JLHv_VFGKvHzqGc&quot; style=&quot;border: none; transform: rotate(0rad);&quot; width=&quot;423&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;
Hope this gives you simple introduction about SOLR,let me know if you have any concerns via comments.&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/2230940140592562107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2017/11/apache-solr-introduction-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2230940140592562107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2230940140592562107'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2017/11/apache-solr-introduction-installation.html' title='Apache SOLR introduction &amp; installation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheWnoy50NbHYZWShxppK53KT9xH2UVcgNoDtphnC-8KXvvnTGCS0jYDSW6MfN3Tr20K5tecgshhD18b04eYWDmz-lKveYb-bjL9nIDXn39Djt6aUWSfU2745z_JnUOQUqhVsHQpwF4f98/s72-c/mongo_intro+%25284%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-5919159536660026594</id><published>2017-11-27T18:15:00.003+05:30</published><updated>2018-11-01T12:23:28.730+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Percona"/><category scheme="http://www.blogger.com/atom/ns#" term="Percona Dashboards"/><category scheme="http://www.blogger.com/atom/ns#" term="Percona Monitoring and Management"/><category scheme="http://www.blogger.com/atom/ns#" term="PMM"/><category scheme="http://www.blogger.com/atom/ns#" term="PMM server"/><category scheme="http://www.blogger.com/atom/ns#" term="Prometheus"/><title type='text'>Explaining PMM server by Percona </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD-KE-ONY5agdX4xWU9elQIgUnBCUPC-y7qjtCINF527mpi8A9_asDFw2qqIMxJtUnVAGvYpmKjxn3-i6hf1gPr0qgkQXguQx55NCVUYbX0cIFbt5MmiuFMSeeub9x0-9vwN_0-146bEc/s1600/mongo_intro+%252810%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD-KE-ONY5agdX4xWU9elQIgUnBCUPC-y7qjtCINF527mpi8A9_asDFw2qqIMxJtUnVAGvYpmKjxn3-i6hf1gPr0qgkQXguQx55NCVUYbX0cIFbt5MmiuFMSeeub9x0-9vwN_0-146bEc/s400/mongo_intro+%252810%2529.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Percona Monitoring and Management&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot;; font-size: 14pt; font-weight: 700; text-align: left; white-space: pre-wrap;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PMM Client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;It is installed on every database host that you want to monitor. It collects server metrics, general system metrics, and query analytics data for a complete performance overview. Collected data is sent to the PMM Server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PMM Server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;It &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is the central part of PMM that aggregates collected data and presents it in the form of tables, dashboards, and graphs in a web interface.&lt;/span&gt;&lt;/div&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;472&quot; src=&quot;https://lh5.googleusercontent.com/6xIqbplK6YEDO1OWItsv0QpBvbIuLbUc4M33w7KouNaPEflR3NjH3URCpx4mDyH7TeXVRUszCLeKUwiGsTulQpSn4CizHY4TRfX4mNK95jU09W0e5RqoDzb5YMVMOIEKCWQN9mFalq4GIQdoHQ&quot; style=&quot;border: none; transform: rotate(0rad);&quot; width=&quot;535&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PMM Client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PMM Client packages consist of the following:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;pmm-admin &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a command-line tool for managing PMM Client, for example, adding and removing database instances that you want to monitor. &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;percona-qan-agent &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a service that manages the Query Analytics (QAN) agent as it collects query performance data. It also connects with QAN API in PMM Server and sends over collected data.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;node_exporter &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a Prometheus exporter that collects general system metrics&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;mysqld_exporter &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a Prometheus exporter that collects MySQL server metrics. &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;mongodb_exporter &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a Prometheus exporter that collects MongoDB server metrics. &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;proxysql_exporter &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a Prometheus exporter that collects ProxySQL performance metrics.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PMM Server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PMM Server consists of the following tools:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Query Analytics (QAN) &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;enables you to analyze MySQL query performance over periods of time. In addition to the client-side QAN agent, it includes the following:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;QAN &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;API is the backend for storing and accessing query data collected by percona-qan-agent running on a PMM Client.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;QAN Web App&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; is a web application for visualizing collected Query Analytics data.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Metrics Monitor (MM) provides a historical view of metrics that are critical to a MySQL or MongoDB server instance.&lt;/span&gt;&lt;/div&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;269&quot; src=&quot;https://lh4.googleusercontent.com/SASkzbOdTaSkXSj3DzStwn3EmqeahXbkDdcIFs1J4PTSn7bNzaMW6XAMK7w_Lscg79cx2s4E-37eN3YkQ3P7Xw7Au3SR4zf6hv4CxhhWcZkZ11LlWAL8jexQ71QShODhqnu1Kxfo7g0kMa0PuQ&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;The summary table contains top 10 queries ranked by %GTT (percent of grand total time)&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Query details-mysql&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Performance schema-mysql&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Prometheus &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a third-party time-series database that connects to exporters running on a PMM Client and aggregates collected metrics. &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Consul &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;provides an API that a PMM Client can use to remotely list, add, and remove hosts for Prometheus. It also stores monitoring metadata. &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Grafana &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a third-party dashboard and graph builder for visualizing data aggregated by Prometheus.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Percona Dashboards&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; is a set of dashboards for Grafana developed by Percona.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Orchestrator &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;is a MySQL replication topology(NODE) management and visualization tool.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;All tools can be accessed from the PMM Server web interface (landing page).Special users must be created for topology generation.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PMM server running methods:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Run PMM Server using Docker&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Run PMM Server as a virtual appliance(VM ware,VirtualBox)&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Run PMM Server using Amazon Machine Image (AMI)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Docker&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;234&quot; src=&quot;https://lh6.googleusercontent.com/-vnw8xRJ6kqS4kG5JAFoKrpkJauSUDEdli0BhwqLA_7wPxOlwBuDO8h68FagZOiTmnNwklXjFlZ9DVLwb0-TKTHIRt2ISqjdG12jUQ15zO8vzIU3z2q3v6LZOcxJrjH_Y9We5ozk7eWgYS-g5g&quot; style=&quot;border: none; transform: rotate(0rad);&quot; width=&quot;277&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Docker is a tool designed to make it easier to create, deploy, and run applications by using containers.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;It extracts all the needed packages from https://github.com/docker.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Running PMM Server Using Docker&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Step 1&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;. Create a PMM Data Container&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;624&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: whitesmoke; border-bottom: solid #d9d9d9 1pt; border-left: solid #d9d9d9 1pt; border-right: solid #d9d9d9 1pt; border-top: solid #d9d9d9 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;docker create \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;-v /opt/prometheus/data \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;-v /opt/consul-data \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;-v /var/lib/mysql \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;-v /var/lib/grafana \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;--name pmm-data \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;percona/pmm-server:1.1.5 /bin/true&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;docker create&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-instructs the Docker daemon to create a container from an image.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;- initialize data volumes for the container.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-assigns a custom name for the container&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;percona/pmm-server:1.1.5&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; is the name and version tag of the image to derive the container from.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Step 2&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;. Create and Run the PMM Server Container&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;624&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: whitesmoke; border-bottom: solid #d9d9d9 1pt; border-left: solid #d9d9d9 1pt; border-right: solid #d9d9d9 1pt; border-top: solid #d9d9d9 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;docker run -d \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;-p 80:80 \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;--volumes-from pmm-data \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;--name pmm-server \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;--restart always \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;percona/pmm-server:1.1.5&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;run&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-instructs the docker daemon to run a container from an image.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-starts the container in detached mode(bg)&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-port&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;volumes from&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-mounts volumes from the pmm-data container&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;restart&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;-defines the container’s restart policy&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Verifying PMM Server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Checkout access the PMM web interface using the IP address of the host where the container is running.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;255&quot; src=&quot;https://lh5.googleusercontent.com/Pl0VtzlOqIJdoz0KOVc4wh6SprljBM_aPkDdyOer22-A_1EVQ_H6Ghj0m5N536iBXCZxG9JFzyWz3hRcBZsv5q4w7YIVfHPrRMI1BzSmifwTokH0ievanKF1SMZOaIIDC_fKpFfUnv82qaGdsg&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;471&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Connecting PMM Client to PMM Server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;To connect the client to PMM Server, specify the IP address using the pmm-admin config --server command&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;624&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: whitesmoke; border-bottom: solid #d9d9d9 1pt; border-left: solid #d9d9d9 1pt; border-right: solid #d9d9d9 1pt; border-top: solid #d9d9d9 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ sudo pmm-admin config --server 192.168.100.1&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;OK, PMM server is alive.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PMM Server &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| 192.168.100.1&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Client Name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| ubuntu-amd64&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Client Address &amp;nbsp;| 192.168.200.1&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Starting Data Collection&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;After you connect the client to PMM Server, enable data collection from the database instance by adding a monitoring service.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;To enable general system metrics, MySQL metrics, and query analytics, run:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;sudo pmm-admin add mysql&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;To enable general system metrics and MongoDB metrics, run:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;sudo pmm-admin add mongodb&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;To see what is being monitored, run:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ sudo pmm-admin list&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 11.5pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;196&quot; src=&quot;https://lh5.googleusercontent.com/zSDxtuPJOzxN3WWotAxm14WXhUrkXempmdFmlj2aAEtgVWTe4jfSJ6Jyhc8wexxqWmoCZ6F1w4oMFcx9iE3PoDN7OnE08JlPR6xZ9p34g63r_3SDdI0uRMSI-4NIOnPLoLEQANjUn-Ck7rIJJg&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Upgrading PMM Server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Stop the server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ docker stop pmm-server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Remove the old server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ docker rm pmm-server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Run the new one&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;margin-left: 0pt;&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;624&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0pt;&quot;&gt;&lt;td style=&quot;background-color: whitesmoke; border-bottom: solid #d9d9d9 1pt; border-left: solid #d9d9d9 1pt; border-right: solid #d9d9d9 1pt; border-top: solid #d9d9d9 1pt; padding: 5pt 5pt 5pt 5pt; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ docker run -d \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;-p 80:80 \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;--volumes-from pmm-data \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;--name pmm-server \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;--restart always \&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;consolas&amp;quot;; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; &amp;nbsp;&amp;nbsp;percona/pmm-server:1.1.5&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Upgrading PMM Client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;For Debian or Ubuntu:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install pmm-client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;For RedHat or CentOS:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ yum update pmm-client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Removing PMM Server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Stop and remove the pmm-server container:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ docker stop pmm-server &amp;amp;&amp;amp; docker rm pmm-server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;If you also want to discard all collected data, remove the pmm-data container:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ docker rm pmm-data&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Removing PMM Client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;If you installed using RPM packages:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ rpm -e pmm-client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;If you installed using YUM:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ yum remove pmm-client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;If you installed using DEB packages:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ dpkg -r pmm-client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;If you installed using APT:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;$ apt-get remove pmm-client&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Dashboards&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;421&quot; src=&quot;https://lh4.googleusercontent.com/hrAKnXVArEFInCeAQ7vZ8KbaTofGfUROIHYd3A9qTzopN6q1wYLjZ7kgB_kPpbpzAcrzpiJPKqbE8QPJMb7F2ruOLQc-NDSs2h7reva_PSAe2uJMhoizkfnWwBPqfhVoy9aseL21nfxW80luWg&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;213&quot; src=&quot;https://lh5.googleusercontent.com/OeKY-GQGS9J4YcnSBdro39nDHRERteFaRq6t2SeY2VoBYte-nSKZQ9OS6q_onq8FWZlyxP7JxIZ0FFZoQjcnp81c84nDttcWYuj5m2-Co6sYqpRim9oZbm0VbjqXJz9esg3BrFN4TdvYPIu_kQ&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.3800000000000001; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;img height=&quot;319&quot; src=&quot;https://lh5.googleusercontent.com/IpoZ2J9zAz06E8CxgY44e5qo0tJR-Nn1Y5eFGFxrAZfGR1p_kcinlxvCHQgCtg-U0HnSEeFEBGc40mZ-Ruo-t1mGHaA1EKmu8v59bACr5yP9j4FXiKrTcvecvlqYU7HqAlPQRood8mpAnDjssQ&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/5919159536660026594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2017/11/pmm-server-by-percona.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/5919159536660026594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/5919159536660026594'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2017/11/pmm-server-by-percona.html' title='Explaining PMM server by Percona '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD-KE-ONY5agdX4xWU9elQIgUnBCUPC-y7qjtCINF527mpi8A9_asDFw2qqIMxJtUnVAGvYpmKjxn3-i6hf1gPr0qgkQXguQx55NCVUYbX0cIFbt5MmiuFMSeeub9x0-9vwN_0-146bEc/s72-c/mongo_intro+%252810%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-1926501535703580812</id><published>2015-07-08T17:44:00.002+05:30</published><updated>2018-11-01T12:10:22.695+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="db.currentOp()"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="running queries"/><title type='text'>To View current running operations in MongoDB</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdPWdHqT-OzzzBXCG3verC1pm4GCblHornhNswhFmA7CAsaT3Hz8sY7qamL1K9uwRuYwY-phk0hfClCXdCSCa24SgdA1QTnI4CaBhw0NW3Ces6PyrOaBXK0LdOXf21A-uRj77r89Pctpg/s1600/mongo_intro+%25285%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdPWdHqT-OzzzBXCG3verC1pm4GCblHornhNswhFmA7CAsaT3Hz8sY7qamL1K9uwRuYwY-phk0hfClCXdCSCa24SgdA1QTnI4CaBhw0NW3Ces6PyrOaBXK0LdOXf21A-uRj77r89Pctpg/s400/mongo_intro+%25285%2529.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
Every database includes multiple currentoperations running in the server. In this blog, we shall discuss the process list in MongoDB.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-5db047a3-6d8c-feee-af88-411bdb56c0d2&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MongoDB is used to display all the documents that contains information on in-progress operations for the database instance which can be done using &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.currentop()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; operation.If you pass a query document to db.currentOp(), the output returns information only for the current operations that match the query.In this post we are going to see the various output that are return by db.currentop().&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To view the current active queries in the database:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;db.currentOp(
      {
        &quot;active&quot; : true
    }
    )

&lt;/pre&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To view the queries that are running more than ‘x’ seconds in the database:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;db.currentOp(
      {
        &quot;active&quot; : true,
        &quot;secs_running&quot; : { &quot;$gt&quot; : 10}
      }
    )
&lt;/pre&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To view the queries that are waiting for a lock and not a read:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;db.currentOp().inprog.forEach(
      function(d){
        if(d.waitingForLock &amp;amp;&amp;amp; d.lockType != &quot;read&quot;)
          printjson(d)
        })

&lt;/pre&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To view all active read queries:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;db.currentOp().inprog.forEach(
      function(d){
        if(d.active &amp;amp;&amp;amp; d.lockType == &quot;read&quot;)
          printjson(d)
        })

&lt;/pre&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To view all active write queries:&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;db.currentOp().inprog.forEach(
      function(d){
        if(d.waitingForLock &amp;amp;&amp;amp; d.lockType != &quot;write&quot;)
           printjson(d)
        })

&lt;/pre&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Kill the queries:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Incase if some of the queries that are running for more seconds and are degrading the database performance you can kill the using &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;killOp() &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;operation.The necessary parameter to kill is the opid(operation id) that will be returned by the currentOp().To kill a query with the opid 3258220 issue the below command.&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt;db.killOp(3258220)
&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; So once done the query that has been mentioned will be killed which you can check again using the db.currentOp().&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/1926501535703580812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/07/to-view-current-running-operations-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/1926501535703580812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/1926501535703580812'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/07/to-view-current-running-operations-in.html' title='To View current running operations in MongoDB'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdPWdHqT-OzzzBXCG3verC1pm4GCblHornhNswhFmA7CAsaT3Hz8sY7qamL1K9uwRuYwY-phk0hfClCXdCSCa24SgdA1QTnI4CaBhw0NW3Ces6PyrOaBXK0LdOXf21A-uRj77r89Pctpg/s72-c/mongo_intro+%25285%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-2548261999228382188</id><published>2015-07-08T14:01:00.003+05:30</published><updated>2015-07-08T15:57:37.657+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="adminstration"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="roles"/><category scheme="http://www.blogger.com/atom/ns#" term="users"/><title type='text'>User creation in MongoDB</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjh-AwAnWHQasEkNpQ7qJNBUYG3-I-Z0WNw8KnbD6rq9K9nBMkUO6sTks9uVwBdj4CcKcThYYrgjBaetsXNwYFAulnGviXqnYm8dzdjGU5CbIW5G6XxqsKlYpKqqEzlarPQ4mj9Q7nJMI/s1600/user.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjh-AwAnWHQasEkNpQ7qJNBUYG3-I-Z0WNw8KnbD6rq9K9nBMkUO6sTks9uVwBdj4CcKcThYYrgjBaetsXNwYFAulnGviXqnYm8dzdjGU5CbIW5G6XxqsKlYpKqqEzlarPQ4mj9Q7nJMI/s400/user.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-408a4c54-6cba-5c97-42fa-c9095ca8b345&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Security is a foremost criteria in the databases. Proper authentication in the databases must be enabled to ensure high security.Users in the database paves a way for the better authentication in databases.In this post we are going to see how to create the users once you are done with the&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://jerwinroy.blogspot.in/2015/07/install-mongodb-using-yum-on-linuxcentos.html&quot; target=&quot;_blank&quot;&gt;MongoDb installation&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;.Its necesary to create the required range of the users.Each users have their own roles that they can perform.The following are the some users that are very much necessary in the mongodb databases .&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Administrator user:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; This user can grant themselves privileges in excess of their current privileges and even can grant themselves &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;all privileges&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;, even though the role does not explicitly authorize privileges beyond user administration.It is also a typical superuser in the database.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;use admin&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.createUser(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;user: &quot;UserAdmin&quot;,&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pwd: &quot;password&quot;,&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;roles: [ { role: &quot;userAdminAnyDatabase&quot;, db: &quot;admin&quot; } ]&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Root user:&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It provides access to the operations and all the resources of the readWriteAnyDatabase, dbAdminAnyDatabase, userAdminAnyDatabase and clusterAdmin roles combined also this user does not include any access to collections that begin with the system. prefix.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;use admin&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.createUser(&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;user: &quot;root&quot;,&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;pwd: &quot;password&quot;,&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;roles: [ &quot;root&quot; ]&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Read/Write user:&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;This user provides the read and write permissions for a particular database that is specified.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;use admin&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.createUser(&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;user: &quot;rw_user&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;pwd: &quot;password&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;roles:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;{ role: &quot;readWrite&quot;,db:&quot;test_db&quot;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Read user:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;This user provides only the read permissions for a particular database that is specified.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;use admin&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.createUser(&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;user: &quot;read_user&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;pwd: &quot;password&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;roles:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;{ role: &quot;read&quot;,db:&quot;test_db&quot;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Write user:&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;This user provides only the write permissions for a particular database that is specified.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;use admin&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.createUser(&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;user: &quot;write_user&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;pwd: &quot;password&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;roles:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;{ role: &quot;write&quot;,db:&quot;test_db&quot;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-408a4c54-6cc0-1f5b-f8f8-b87db89fafc4&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Backup User:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;This
 user is used to perform only the backup operations in the database.So 
in case you have single instance its enough to have the following role:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;use admin&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.createUser(&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;user: &quot;backup&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;pwd: &quot;password&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;roles:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;{ role: &quot;dbAdmin&quot;,db:&quot;admin&quot;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Incase you maintain any shard or replica you can have the below role:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;use admin&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.createUser(&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;user: &quot;backup&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;pwd: &quot;password&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;roles:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;[&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;{ role: &quot;clusterdbAdmin&quot;,db:&quot;admin&quot;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Check user privileges:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Its very much necessary to see what are all the privileges that are given to a particular user,to find them use the below query:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.runCommand(&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;usersInfo: &amp;nbsp;{ user: &quot;root&quot;, db: &quot;admin&quot; },&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;showPrivileges: true&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-408a4c54-6cc0-1f5b-f8f8-b87db89fafc4&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can also create your own users similarly mentioned above if you have more ideas about the roles needed.To know more about the mongodb roles check this &lt;b&gt;&lt;a href=&quot;http://docs.mongodb.org/manual/reference/built-in-roles/&quot; target=&quot;_blank&quot;&gt;link.&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/2548261999228382188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/07/user-creation-in-mongodb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2548261999228382188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2548261999228382188'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/07/user-creation-in-mongodb.html' title='User creation in MongoDB'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjh-AwAnWHQasEkNpQ7qJNBUYG3-I-Z0WNw8KnbD6rq9K9nBMkUO6sTks9uVwBdj4CcKcThYYrgjBaetsXNwYFAulnGviXqnYm8dzdjGU5CbIW5G6XxqsKlYpKqqEzlarPQ4mj9Q7nJMI/s72-c/user.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-1426817618084482271</id><published>2015-07-02T12:52:00.000+05:30</published><updated>2018-11-01T12:14:02.666+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="installation"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="nosql"/><category scheme="http://www.blogger.com/atom/ns#" term="server installation"/><category scheme="http://www.blogger.com/atom/ns#" term="yum"/><title type='text'>Install MongoDB using yum on Linux(CentOS)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-mI-KmhYvTXnB6fUJf_TxhXuZWgGeN_71ppOIEyg2q0MAhoy_feQ-haVBOGfkiFuD658rcELi0TTSGyRyrxoYpGMsbu-2VLfy2hOxm_I5EqiY-bGSR6vHjqP50XUddgo6vHBLdMP3a80/s1600/yum.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-mI-KmhYvTXnB6fUJf_TxhXuZWgGeN_71ppOIEyg2q0MAhoy_feQ-haVBOGfkiFuD658rcELi0TTSGyRyrxoYpGMsbu-2VLfy2hOxm_I5EqiY-bGSR6vHjqP50XUddgo6vHBLdMP3a80/s320/yum.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-f6aa5469-4d1f-558d-362f-cb6a55b21014&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MongoDB falls into NoSQL category of database also it is a document database that provides high performance, high availability, and easy scalability.Few of its advantages are high availability and scalability.In this post we are going to see how to install the mongodb using yum on linux.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 1&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:Create a repo file that is necessary to download the mongodb.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;vim /etc/yum.repos.d/mongodb.repo&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 2&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:Mongodb has two types of packages for 32-bit and 64-bit systems.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;For 32-bit systems type the below information in repo file and save.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;[mongodb-org-3.0]&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;name=MongoDB 3.0 Repository&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;gpgcheck=0&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;enabled=1&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;In the first line of the file specify you own necessary version of the mongodb to be downloaded.Here i have used version 3.0.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;For 64-bit systems type the below information in repo file and save.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;[mongodb-org-3.0]&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;name=MongoDB 3.0 Repository&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;gpgcheck=0&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;enabled=1&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;In the first line of the file specify you own necessary version of the mongodb to be downloaded.Here i have used version 3.0.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;Note&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:It’s always better to download 64 bit for production rather than 32 bit because 32-bit MongoDB processes are limited to about 2 gb of data.But the 64 bit doesn&#39;t have that limitation. For development both versions can be used.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 3&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:Mongodb has a set of packages as below:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongodb-org-server-3.0.4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Mongodb server&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongodb-org-shell-3.0.4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Mongo Shell&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongodb-org-mongos-3.0.4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Mongo Shard&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongodb-org-tools-3.0.4 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Mongo Tools&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;And it contains all the above package together as a single package as below:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongodb-org-3.0.4&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To install all the packages issue the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo yum install mongodb-org&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To install mongodb server alone issue the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo yum install mongodb-org-server-3.0.4&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To install mongo shell alone issue the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo yum install mongodb-org-shell-3.0.4&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To install mongo shard alone issue the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo yum install mongodb-org-mongos-3.0.4&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To install mongo tools alone issue the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo yum install mongodb-org-tools-3.0.4&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 3&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:Start the installed mongodb server using the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo service mongod start&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The server is now started and to login to the mongo shell issue the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongo&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To check the current status of mongod issue the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo service mongod status&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To stop the running mongod server use the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo service mongod stop&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;It’s finished.We have installed the mongodb and now you can start exploring :)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/1426817618084482271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/07/install-mongodb-using-yum-on-linuxcentos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/1426817618084482271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/1426817618084482271'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/07/install-mongodb-using-yum-on-linuxcentos.html' title='Install MongoDB using yum on Linux(CentOS)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-mI-KmhYvTXnB6fUJf_TxhXuZWgGeN_71ppOIEyg2q0MAhoy_feQ-haVBOGfkiFuD658rcELi0TTSGyRyrxoYpGMsbu-2VLfy2hOxm_I5EqiY-bGSR6vHjqP50XUddgo6vHBLdMP3a80/s72-c/yum.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-2869514641909525841</id><published>2015-07-01T18:06:00.000+05:30</published><updated>2018-11-01T12:31:18.736+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="bigdata"/><category scheme="http://www.blogger.com/atom/ns#" term="data migration"/><category scheme="http://www.blogger.com/atom/ns#" term="databases"/><category scheme="http://www.blogger.com/atom/ns#" term="migration"/><category scheme="http://www.blogger.com/atom/ns#" term="mongify"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql to mongodb"/><title type='text'>MySQL to MongoDB Migration in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-a9ff4507-6d37-184d-894f-683cf6f0a593&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFoUIgFAKvkBT_3w5XLvF0Q5SAMk60Bmnjg0GKj-4iESoVpXt4ojp947s1IOwAjl54rbUo_K9eHwrOT1nM44OR7wkr-vzzG4XAC-SjXb99BM8UTwYYR0dhHndmnuChCwdqbnfBwfN5XjU/s1600/mongo_intro+%252811%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFoUIgFAKvkBT_3w5XLvF0Q5SAMk60Bmnjg0GKj-4iESoVpXt4ojp947s1IOwAjl54rbUo_K9eHwrOT1nM44OR7wkr-vzzG4XAC-SjXb99BM8UTwYYR0dhHndmnuChCwdqbnfBwfN5XjU/s400/mongo_intro+%252811%2529.png&quot; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;In the present scenario due to the influence, Bigdata people started to move on from RDBMS to NoSQL for a better excellence. So its necessary to have a database that is good enough in performance and handling the big data. MongoDB a document-oriented database would fit into it which has high availability and scaling. In this post, we are going to see how to migrate all the data from a &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;MySQL&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; instance to &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;MongoDB&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; instance. It can be performed without downtime and the data loss. The tool used to perform the migration task is the &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Mongify&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mongify tool was developed by &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Andrew Kalek&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; from Anlek Consulting. This tool helps for migrating data from MySQL to mongodb.No need to worry about the IDs or foreign IDs.Allows embedding data into documents, including polymorphic associations. The problem is it can&#39;t do anything to an embedded table. Some packages are to be necessary before installing mongify in Linux so install them as below:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;yum install gem&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;gem install bundler&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;bundle install&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;gem install json_pure&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To install mongify issue the below command:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;gem install mongify&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Setup:&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To perform the migration task it needs some requirements in the system:&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;There must be MySQL client running as rpm in because the tool listens only for the rpm connection&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Also, have a binary or rpm instance of mongodb running in the machine&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Make sure that both mysql&amp;nbsp;&amp;amp; MongoDB servers are running&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Configuration file:&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;It involves mainly a two files database.config and ruby file translation.rb&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;database.config &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;file contains the credentials of the mysql such as host,username,password,database and for mongodb credentials like host,database&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;translation.rb &lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;is a ruby file that should contain the details of mysql tables and column values with the proper datatype mentioned&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Mongify Check:&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;It is used to connect the both mysql and mongodb instances &amp;amp; checks whether connection works.It checks the configuration file database.config whether the database credentials present are correct.Once the connection is established it throws a message “SQL connection works NoSQL connection works”.This command can be performed as below:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongify check database.config&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Mongify Translation:&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The is a ruby file used to translate SQL data before saving it into MongoDB.In order for Mongify to know with the data provide a translation file(translation.rb).It contains the tables and column values with the datatypes defined.This command can be performed as below:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongify translation database.config &amp;gt; translation.rb&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Mongify Process:&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Once the translation file is setup, it tells mongify to move the data by issuing the process command. This command initiates the migration process from the MySQL to MongoDB .&amp;nbsp;This command can be performed as below:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mongify process database.config translation.rb&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4997-ee8e-ac0a-c897a9abf073&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Its very simple to migrate the data to MongoDB from MySQL.Have a great time guys meet you in another good post.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/2869514641909525841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/07/mysql-to-mongodb-migration-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2869514641909525841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/2869514641909525841'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/07/mysql-to-mongodb-migration-in-linux.html' title='MySQL to MongoDB Migration in Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFoUIgFAKvkBT_3w5XLvF0Q5SAMk60Bmnjg0GKj-4iESoVpXt4ojp947s1IOwAjl54rbUo_K9eHwrOT1nM44OR7wkr-vzzG4XAC-SjXb99BM8UTwYYR0dhHndmnuChCwdqbnfBwfN5XjU/s72-c/mongo_intro+%252811%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-3738247186921305118</id><published>2015-05-12T14:01:00.003+05:30</published><updated>2015-07-08T16:52:30.785+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="benchmark"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="tokumx"/><category scheme="http://www.blogger.com/atom/ns#" term="tokutek"/><category scheme="http://www.blogger.com/atom/ns#" term="update"/><title type='text'>TokuMX vs MongoDB benchmark</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP81QtdOP6nHgceU33dRZw6GxXmd2ImmI3GjM1jkieIDO5R7BFBFICyqjmA6raFlmXy5l_aSMBSR3qe6OThWF6VIGqz7qU1ji-qQ_59wwTN6tTAADVkZpItBOJi3Wul8xRZn12ncTBl2E/s1600/toku.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP81QtdOP6nHgceU33dRZw6GxXmd2ImmI3GjM1jkieIDO5R7BFBFICyqjmA6raFlmXy5l_aSMBSR3qe6OThWF6VIGqz7qU1ji-qQ_59wwTN6tTAADVkZpItBOJi3Wul8xRZn12ncTBl2E/s1600/toku.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MongoDB has grown into a popular NoSQL database in a really short interval of time. With its document oriented structure and bson format storage.MongoDB has captivated the hearts of developers. We have been working on several mongoDB related benchmarks and in the recent times we came across Tokutek’s TokuMx which is a fork of mongoDB with the promising Fractal tree index.&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Several of Tokutek’s benchmarks prove that the performance of &amp;nbsp;TokuMx is nearly 50x faster , 90% reduction in database size. The details and the graphs given by them were quite impressive. We tried our own benchmarks and were surprised to get the below results.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c095bac3-4954-b7d3-92f5-10cf65b709af&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Our benchmark was done on a centos 7 machine with the below configuration:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;CPU no(s) &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;: 4&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;CPU speed &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;: 2361.140 MHz&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;RAM Total &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;: &amp;nbsp;3768708 kB&lt;/span&gt;&lt;/div&gt;
&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c095bac3-4954-da21-eb32-3e0bbe3eb07f&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The insert benchmark was carried by inserting different number of documents and the time take for each insert was observed. The below graph depicts it.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;img alt=&quot;insert.png&quot; height=&quot;313px;&quot; id=&quot;docs-internal-guid-646ceb7c-473d-2d95-0c9e-890e62b5e67b&quot; src=&quot;https://lh6.googleusercontent.com/ofoyh20Hjh5GLSJWjVacloZMBTjEVnFQ0RutI8R_5hSa96WUtH_RQ4CiamYiiBw130FZcBsa7BxWHu2XGadDThIaLoQOQcRYJjC6A2FBf-yhLC-TKzabkL_RYXbvZwHBgC743VAimg&quot; width=&quot;540px;&quot; /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c095bac3-4955-0e6e-2729-131b1d42104a&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We then pulled out the data that we inserted with different sets of rows and the time taken for each select query was noted.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;img alt=&quot;select.png&quot; height=&quot;304px;&quot; id=&quot;docs-internal-guid-646ceb9b-473e-5440-2df4-0af5d270f402&quot; src=&quot;https://lh4.googleusercontent.com/T-r_s6lvfbsEPwXlTekGh21xIb7eCCamWc0wqHCYhaVZYIv8OGrtO4Ir2unGXjrzizxqZU5u2W0zencTosmQxfvAUevEGMzE-WQns3yDyHampC7RwPHjcN6U6t2L-Qxtgx0YK92T0Q&quot; width=&quot;630px;&quot; /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c095bac3-4955-3621-fb76-3c65e94059f3&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We also noted down down the size of the database on disk and made a comparison.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOwxo-_r5RkFqqzdlsXezmfDbDjsvHnEqeQAGDFSNU2kcdtLpyZ3_kwlgb_CbP0iibGyPMXAsnr9XnOCnaff0cQTJTY6GEqh614zSvc5gG1ImPNMLR5rp_yJpICIdu8jhyS9HLI6bfUoc/s1600/size+of+data.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;402&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOwxo-_r5RkFqqzdlsXezmfDbDjsvHnEqeQAGDFSNU2kcdtLpyZ3_kwlgb_CbP0iibGyPMXAsnr9XnOCnaff0cQTJTY6GEqh614zSvc5gG1ImPNMLR5rp_yJpICIdu8jhyS9HLI6bfUoc/s640/size+of+data.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;img alt=&quot;size on disk\.png&quot; height=&quot;313px;&quot; id=&quot;docs-internal-guid-646cebba-473e-ad43-b260-ece8a5557696&quot; src=&quot;https://lh5.googleusercontent.com/bDL1diwwo95lxvmZmZA1n0BcKUGIJIVSEWRCdUcMQEp-q7CZd23abYMpKs84YQSNIc5W6qMrR8kx6dzyhhprXDmf8NFbplbgu1QUTn_U3C-_iLhNWkPI3W_uUfmIcYy-blhv23EOHg&quot; width=&quot;621px;&quot; /&gt;&lt;/div&gt;
&amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c095bac3-4955-60ad-b791-e3c15cabd825&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Hope this benchmarking gives all a clear comparison between MongoDB and TokuMx.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/3738247186921305118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/05/tokumx-vs-mongodb-benchmark.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/3738247186921305118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/3738247186921305118'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/05/tokumx-vs-mongodb-benchmark.html' title='TokuMX vs MongoDB benchmark'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP81QtdOP6nHgceU33dRZw6GxXmd2ImmI3GjM1jkieIDO5R7BFBFICyqjmA6raFlmXy5l_aSMBSR3qe6OThWF6VIGqz7qU1ji-qQ_59wwTN6tTAADVkZpItBOJi3Wul8xRZn12ncTBl2E/s72-c/toku.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-6549814953142652201</id><published>2015-04-09T11:47:00.002+05:30</published><updated>2018-11-26T11:19:29.473+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="host"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="nosql"/><category scheme="http://www.blogger.com/atom/ns#" term="operations"/><category scheme="http://www.blogger.com/atom/ns#" term="terminal"/><category scheme="http://www.blogger.com/atom/ns#" term="user"/><title type='text'>View current user,host,port and database in mongo shell</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c095bac3-495c-4b09-ae39-7365b98235e9&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgveeO4Ezlu8g20U9Vcz5efBVEwCopz24R4EodIXlL2mxRuUdxBTVRPpk9d1RGsvYCMy-O3KyIjdDPqd7BUzFwwSRyqP0NJK4A93zWo1RG_V4ngmHiBeCNtA6QCOOcIdTWaP54cLtOIlgg/s1600/mongo_intro+%252820%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgveeO4Ezlu8g20U9Vcz5efBVEwCopz24R4EodIXlL2mxRuUdxBTVRPpk9d1RGsvYCMy-O3KyIjdDPqd7BUzFwwSRyqP0NJK4A93zWo1RG_V4ngmHiBeCNtA6QCOOcIdTWaP54cLtOIlgg/s1600/mongo_intro+%252820%2529.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Working would be great when there is some good interface. But when your working in the mongo shell we feel little uneasy to know the user, host, port, and database we are using at present. Even though we have certain commands &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;to find out the &lt;/span&gt;current user, host, port, and database it looks like a time consuming one.&lt;/span&gt; Its difficult to find out them the shell. How can we make all these criteria to appear in the current shell we are working on?Okay, let&#39;s have a look at this post.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The normal mongo shell looks likes this with no any criteria specified:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEaf_W0nKbKT0IyDWIzfLDYMemcVYyf8GLiJhmiku-Ri-kjVzNq8RoG_PVo_CvktIE49soGERFb8awdSOXmsf0Uexw6_vQ0VUKuwJftwq12vlLkGscpSoGwQLL7-4o3vSIoi2OaSJ-BwQ/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEaf_W0nKbKT0IyDWIzfLDYMemcVYyf8GLiJhmiku-Ri-kjVzNq8RoG_PVo_CvktIE49soGERFb8awdSOXmsf0Uexw6_vQ0VUKuwJftwq12vlLkGscpSoGwQLL7-4o3vSIoi2OaSJ-BwQ/s1600/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c095bac3-495d-2a94-7996-8d9af488b440&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; The below script allows displaying the current user, host, port, and database in mongo shell. All you need to do is to paste the below-shown code into your mongo shell.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;php&quot; name=&quot;code&quot;&gt; prompt = function() {
    user = db.runCommand({connectionStatus:1}).authInfo.authenticatedUsers[0]
    host = db.getMongo().toString().split(&quot; &quot;)[2]
    curDB = db.getName()
    if (user) {
       uname = user.user
    }
    else {
       uname = &quot;local&quot;
    }
    return uname + &quot;@&quot; + host + &quot;:&quot; + curDB + &quot;&amp;gt; &quot;
}  
&lt;/pre&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And you can see some changes over there. So now the shell turns out like this:&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhISwBrxze2HEeY3D3I_r3fPX1gJlykmW55CXb1Wp61w6fmXBofWXlQiKGjTrEAB5vVOq5xAdDghvSkwx0IBTQJM0D8L1QgCct22IndYsQEY4NcibkrxhRXd9Rq6ankOhnCsEwcDMuLl7I/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;116&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhISwBrxze2HEeY3D3I_r3fPX1gJlykmW55CXb1Wp61w6fmXBofWXlQiKGjTrEAB5vVOq5xAdDghvSkwx0IBTQJM0D8L1QgCct22IndYsQEY4NcibkrxhRXd9Rq6ankOhnCsEwcDMuLl7I/s1600/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-c095bac3-495c-892a-83b8-277c4adef34d&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The shell looks so cool now right. A simple post yet useful one.Hope this helps.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/6549814953142652201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/04/view-current-userhostport-and-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/6549814953142652201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/6549814953142652201'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/04/view-current-userhostport-and-database.html' title='View current user,host,port and database in mongo shell'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgveeO4Ezlu8g20U9Vcz5efBVEwCopz24R4EodIXlL2mxRuUdxBTVRPpk9d1RGsvYCMy-O3KyIjdDPqd7BUzFwwSRyqP0NJK4A93zWo1RG_V4ngmHiBeCNtA6QCOOcIdTWaP54cLtOIlgg/s72-c/mongo_intro+%252820%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-6613371930994942432</id><published>2015-02-20T11:44:00.002+05:30</published><updated>2015-07-08T16:58:24.919+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="replica set"/><category scheme="http://www.blogger.com/atom/ns#" term="shard"/><category scheme="http://www.blogger.com/atom/ns#" term="sharded cluster"/><category scheme="http://www.blogger.com/atom/ns#" term="shardind"/><title type='text'>Mongodb Replica Set </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1Ni32VepqzS1_THzsR9cy7yjW8aEtdPG228X4liHSw_gjDiIaJ2kcxRi0r6O_HevveoytqREMQaiThWAEu06mD5QKkRNRjON3jYaQp-becgRdhrUb0syRWp1BSU8ZzSKS5S9olH6W7Xo/s1600/replica1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1Ni32VepqzS1_THzsR9cy7yjW8aEtdPG228X4liHSw_gjDiIaJ2kcxRi0r6O_HevveoytqREMQaiThWAEu06mD5QKkRNRjON3jYaQp-becgRdhrUb0syRWp1BSU8ZzSKS5S9olH6W7Xo/s320/replica1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This guide explains the concepts of configuring a two replica set.It also explains about clearly about Replica Set,Primary members,Secondary members,Arbiter,Secondary member,Priority 0 Members,Hidden Replication Members,Delayed Replication Members.Also how to configure the replica set in a shard.&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;h3 dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4961-da29-895c-16df8e7202c0&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Replica Set:&lt;/span&gt;&lt;/h3&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; A replica set in MongoDB is a group of mongod processes that maintain the same data set.Replica sets provide redundancy and high availability, and are the basis for all production deployments.The main difference between the Master-slave replication and the Replica set is that Replica set has automatic failover options.The Master-slave replication has manual failover options.So the Replica set options are more preferred than the Master-slave replication.&lt;/span&gt;&lt;/h3&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Primary members:&lt;/span&gt;&lt;/h2&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The primary is the only member in the replica set that receives write operations. MongoDB applies write operations on the primary and then records the operations on the primary’s oplog. Secondary members replicate this log and apply the operations to their data sets.&lt;/span&gt;&lt;/h3&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Secondary members:&lt;/span&gt;&lt;/h2&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Secondary replicate operations from the primary to maintain an identical data set. Secondaries may have additional configurations for special usage profiles. For example, secondaries may be non-voting or priority 0.&lt;/span&gt;&lt;/h3&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Arbiter:&lt;/span&gt;&lt;/h2&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; An arbiter does not have a copy of data set and cannot become a primary. Replica sets may have arbiters to add a vote in elections of for primary. Arbiters allow replica sets to have an uneven number of members, without the overhead of a member that replicates data.&lt;/span&gt;&lt;/h3&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Secondary member Customization:&lt;/span&gt;&lt;/h2&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; There are instances where you may not want all of your secondary members to be beholden to the standard rules for a replication set. A replication set can have up to 12 members and up to 7 will vote in an election situation.&lt;/span&gt;&lt;/h3&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Priority 0 Replication Members:&lt;/span&gt;&lt;/h2&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; There are some situations where the election of certain set members to the primary position could have a negative impact on your application&#39;s performance.For instance, if you are replicating data to a remote data center or a specific member&#39;s hardware is inadequate to perform as the main access point for the set, setting priority 0 can ensure that this member will not become a primary but can continue copying data.&lt;/span&gt;&lt;/h3&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Hidden Replication Members:&lt;/span&gt;&lt;/h2&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Some situations require you to separate the main set of members accessible and visible to your clients from the background members that have separate purposes and should not interfere.For instance, you may need a secondary member to be the base for analytics work, which would benefit from an up-to-date dataset but would cause a strain on working members. By setting this member to hidden, it will not interfere with the general operations of the replication set.Hidden members are necessarily set to priority 0 to avoid becoming the primary member, but they do vote in elections. &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/h3&gt;
&lt;h2 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Delayed Replication Members:&lt;/span&gt;&lt;/h2&gt;
&lt;h3 dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; By setting the delay option for a secondary member, you can control how long the secondary waits to perform each action it copies from the primary&#39;s oplog.This is useful if you would like to safeguard against accidental deletions or recover from destructive operations. For instance, if you delay a secondary by a half-day, it would not immediately perform accidental operations on its own set of data and could be used to revert changes.Delayed members cannot become primary members, but can vote in elections. In the vast majority of situations, they should be hidden to prevent processes from reading data that is out-of-date.&lt;/span&gt;&lt;/h3&gt;
&lt;h3 dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4962-e238-6380-9bd7475b7678&quot; style=&quot;line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Configuring a replica set:&lt;/span&gt;&lt;/h3&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Let us assume to create a replica set with the following architecture:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4FLVdt-KA1Hmt9hRIFM3h7yOSAgdt4sa6b_qUWK6_OYvoavItwzkdjusAxGmuAAhz4759A8sShFSkGJlLfKWwwK9yZCYsS3Ir7FuMlWtQPedGCfj-Aww1sJkEgbJo_ga3yqHDj5-oLco/s1600/journal+(11).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4FLVdt-KA1Hmt9hRIFM3h7yOSAgdt4sa6b_qUWK6_OYvoavItwzkdjusAxGmuAAhz4759A8sShFSkGJlLfKWwwK9yZCYsS3Ir7FuMlWtQPedGCfj-Aww1sJkEgbJo_ga3yqHDj5-oLco/s1600/journal+(11).png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4963-a5de-854e-aa8084b498e3&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 1&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:Create the required data directories. Creating a replica set with the name firstset,Start a mongod instance as follows for primary(10001) as follows:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --dbpath /data/example/firstset1 --port 10001 --replSet firstset --oplogSize 700 --rest&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 2&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:Create a mongod instance as follows for a secondary(10002):&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --dbpath /data/example/firstset2 --port 10002 --replSet firstset --oplogSize 700 --rest&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 3:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Create a mongod instance as follows for another secondary(10003):&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --dbpath /data/example/firstset3 --port 10003 --replSet firstset --oplogSize 700 --rest&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 4&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:Open a mongo instance for the primary(10001) as follows:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongo localhost:10001/admin&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 5&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:Now initiate the primary(10001) replica set to the mongo instance as follows:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.runCommand({&quot;replSetInitiate&quot; : {&quot;_id&quot; : &quot;firstset&quot;, &quot;members&quot; : [{&quot;_id&quot; : 1, &quot;host&quot; : &quot;localhost:10001&quot;}, {&quot;_id&quot; : 2, &quot;host&quot; : &quot;localhost:10002&quot;}, {&quot;_id&quot; : 3, &quot;host&quot; :&quot;localhost:10003&quot;}]}})&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7n9Cb1MgIfn4_gBrXes7sdpggcqlrnRVImdoO4CqEuT7JXWp5f2b5h_zh-4a81bsAsIK0CgEqtyMolA_m_KSpoTZ9I8xQPgLR0AqOnnzhgYRu5weiPgJng1tPzV7_gjFTtevHYMCGHxQ/s1600/f-mongo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;122&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7n9Cb1MgIfn4_gBrXes7sdpggcqlrnRVImdoO4CqEuT7JXWp5f2b5h_zh-4a81bsAsIK0CgEqtyMolA_m_KSpoTZ9I8xQPgLR0AqOnnzhgYRu5weiPgJng1tPzV7_gjFTtevHYMCGHxQ/s1600/f-mongo.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;br /&gt;


&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span id=&quot;docs-internal-guid-52219dc0-4964-39cb-6297-664d84b0c63a&quot; style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 6&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:The primary interface looks as follows:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB9OuqJMq_agoCBJN2vlhW4ovvdfI2Na6z3-gJJLG1FpoUz7DjgoN25WO6LtaOajiZc9bkHrF6aa4j8v2wqNL29_bCLv6KM2X6iiMCBKX8Nuoz2Pty8NQOG4CO81iwG9LmlGQA3elksOs/s1600/master-login.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;376&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB9OuqJMq_agoCBJN2vlhW4ovvdfI2Na6z3-gJJLG1FpoUz7DjgoN25WO6LtaOajiZc9bkHrF6aa4j8v2wqNL29_bCLv6KM2X6iiMCBKX8Nuoz2Pty8NQOG4CO81iwG9LmlGQA3elksOs/s1600/master-login.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4964-6a04-c3ae-b8801caba3bd&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 7&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:The secondary interface looks as follows:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4964-6a04-c3ae-b8801caba3bd&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaRfEeq4fgs7KEHpiSq0kktBmnY-b48OxRIZIrpUCWXBm8ZxBHybgBm8Oo7In0QXb2RqxbSpYDuM5i1QIePvSLY32_53X18TUANVndJEqTjHs8VSxaqMkHK-fPBy6sXYpxNsECPJofCFo/s1600/slave+behind.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaRfEeq4fgs7KEHpiSq0kktBmnY-b48OxRIZIrpUCWXBm8ZxBHybgBm8Oo7In0QXb2RqxbSpYDuM5i1QIePvSLY32_53X18TUANVndJEqTjHs8VSxaqMkHK-fPBy6sXYpxNsECPJofCFo/s1600/slave+behind.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4964-cc8c-51f6-9e3e84510e35&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 8:To check whether the current replica is master give the command &lt;b&gt;db.ismaster()&lt;/b&gt; from primary:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFMDgpqyuzTbUzqM1oN_qlkOgSvUB_ayZgnZhS2lRA8lbAZ6kdvcFkRhMpb4VltekXOuCcetouEqbuErXPhfc4X1nIzj0-e_MsB1W38zGj9U2KcDOrCuATmmzjixoiT7alPGg8RaNY-DU/s1600/db.isMaster()-primary.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;446&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFMDgpqyuzTbUzqM1oN_qlkOgSvUB_ayZgnZhS2lRA8lbAZ6kdvcFkRhMpb4VltekXOuCcetouEqbuErXPhfc4X1nIzj0-e_MsB1W38zGj9U2KcDOrCuATmmzjixoiT7alPGg8RaNY-DU/s1600/db.isMaster()-primary.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4965-11c8-a223-77636f003c0b&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 9&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:To check whether the current replica is master give the command &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.ismaster()&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; from secondary:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4965-11c8-a223-77636f003c0b&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlz8fSF1ZNVqxefoxensSYVVVgkd6xrbFIvloIy0UtAxJm3jVOFV88X4e47B3jGKqVb6r_4VlqiTJqYjUozUj-oYC7NNLjHtj2mxJLx-MGGuKnPDnWR2bnddQOAS7SiRZkg_2SFqxqVT8/s1600/db.isMaster()-sec.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;384&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlz8fSF1ZNVqxefoxensSYVVVgkd6xrbFIvloIy0UtAxJm3jVOFV88X4e47B3jGKqVb6r_4VlqiTJqYjUozUj-oYC7NNLjHtj2mxJLx-MGGuKnPDnWR2bnddQOAS7SiRZkg_2SFqxqVT8/s1600/db.isMaster()-sec.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4965-efd0-a363-5fa577216bce&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 10&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;:To view the replica status of the primary:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;rs.status()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTBpg1WVlwy6_z20XtsiC2vXaGyDSbkuH74Ok2fULtur94F_Xwpw0W989D5qH0umulTpMcPqgYm3tgwUjnjOTGNFO5Bzd3S9NAh2IYZO8XEnlbaxetadg6957Y-qt7LrluF3UCxXFD0_o/s1600/rs.status().png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;462&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTBpg1WVlwy6_z20XtsiC2vXaGyDSbkuH74Ok2fULtur94F_Xwpw0W989D5qH0umulTpMcPqgYm3tgwUjnjOTGNFO5Bzd3S9NAh2IYZO8XEnlbaxetadg6957Y-qt7LrluF3UCxXFD0_o/s1600/rs.status().png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4966-3460-fe11-89e5b01fd791&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Thats it MongoDb replica set has been configured.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/6613371930994942432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/mongodb-replica-set.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/6613371930994942432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/6613371930994942432'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/mongodb-replica-set.html' title='Mongodb Replica Set '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1Ni32VepqzS1_THzsR9cy7yjW8aEtdPG228X4liHSw_gjDiIaJ2kcxRi0r6O_HevveoytqREMQaiThWAEu06mD5QKkRNRjON3jYaQp-becgRdhrUb0syRWp1BSU8ZzSKS5S9olH6W7Xo/s72-c/replica1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-5810858001857967321</id><published>2015-02-19T18:49:00.002+05:30</published><updated>2015-07-08T15:07:42.384+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="installation"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Install MongoDB on Ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT4nzU-McNxdginEodD26oq_VmjqYHTW0kakCsyO_LloXV3LTfXzfMgysoHtfxpt4bjUn1cdxHKgtZGUPra1t88x06QyHx9ejH3AycWeuD8CNi0ftg7pd0qGzt6s2VAtDYWZOgU_rp-Z4/s1600/ubuntu.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;396&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT4nzU-McNxdginEodD26oq_VmjqYHTW0kakCsyO_LloXV3LTfXzfMgysoHtfxpt4bjUn1cdxHKgtZGUPra1t88x06QyHx9ejH3AycWeuD8CNi0ftg7pd0qGzt6s2VAtDYWZOgU_rp-Z4/s640/ubuntu.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4969-72ea-b7aa-61e572fda0d3&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MongoDB is a cross-platform, document oriented database that provides,high performance, high availability, and easy scalability.This guide helps to install the mongodb on ubuntu. &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 1&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Search for the mongodb package avaliable but initially it may not be present&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo apt-cache search mongodb&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 2&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Add the package to /etc/apt/sources.list.d because its the the latest stable MongoDB version&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;vim /etc/apt/sources.list.d/mongodb.list&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Times New Roman&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Add the following link into the mongodb.list file&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 3&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Import the GPG key&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;u&gt;Step 4&lt;/u&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Update the debian package using the command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;apt-get update&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 5&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Now perform search to view the package&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;apt-cache search mongodb&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 6&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Now the package will be present so install it using the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;apt-get install mongodb-10gen&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 7&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Check mongodb has started using&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;ps -ef | grep mongo&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;ls -ls /usr/bin | grep mongo&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 8&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: The mongodb control script is generated at&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; /etc/init.d/mongodb&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;,the MongoDB config file is at &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;/etc/mongodb.conf&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; add the below details:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;verbose = true&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;dbpath = /data/db&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;logpath = /var/log/mongodb.log&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;logappend = true&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;port = 27017&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-496a-c166-add7-98d31ec7c551&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 9&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Start the mongodb as a service&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;service mongodb start&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 10&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; :Check mongodb service has started using&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;ps -ef | grep mongodb&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 11&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; : To stop/restart perform the below commands:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;service mongodb stop&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Courier New&#39;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;service mongodb restart&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Thus the installation has been very simple in ubuntu.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/5810858001857967321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/install-mongodb-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/5810858001857967321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/5810858001857967321'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/install-mongodb-on-ubuntu.html' title='Install MongoDB on Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT4nzU-McNxdginEodD26oq_VmjqYHTW0kakCsyO_LloXV3LTfXzfMgysoHtfxpt4bjUn1cdxHKgtZGUPra1t88x06QyHx9ejH3AycWeuD8CNi0ftg7pd0qGzt6s2VAtDYWZOgU_rp-Z4/s72-c/ubuntu.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-3244864132073467577</id><published>2015-02-12T17:44:00.000+05:30</published><updated>2018-11-01T12:35:42.248+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="master"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb replication"/><category scheme="http://www.blogger.com/atom/ns#" term="replication"/><category scheme="http://www.blogger.com/atom/ns#" term="slave"/><title type='text'>MongoDB Master Slave Replication</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQpAJPrOpzHfOKJJRpFxKMuZvVzLRxWAUqvLynl4_KLZgXirIePchYL_jCYNqdPcM0Kx7GXIqzlJTCHBBNm2w3LQ9ZoLQELbhTYp2URG72-07K7EHYEMCwliNG-FdiCrlBsz6gIsv5Vo/s1600/mongo_intro+%252812%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQpAJPrOpzHfOKJJRpFxKMuZvVzLRxWAUqvLynl4_KLZgXirIePchYL_jCYNqdPcM0Kx7GXIqzlJTCHBBNm2w3LQ9ZoLQELbhTYp2URG72-07K7EHYEMCwliNG-FdiCrlBsz6gIsv5Vo/s400/mongo_intro+%252812%2529.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-496e-778f-9f49-426932b89870&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Master-Slave replication configuration is easy to configure. Before configuring a Master-Slave Replication in MongoDB it is necessary to know exactly what is a master, slave, replica set and their difference. The database that receives all writes in a conventional master-slave replication is called master. A read-only database that replicates operations from a master database in conventional master/slave replication is called slave. A replica set is a group of mongod processes that maintain the same data set. The main difference between the Master-slave replication and the Replica set is that Replica set has the automatic failover options. The Master-slave replication has the manual failover options. Now let&#39;s try to configure the below model Master-Slave Replication in MongoDB with a single master and three slaves.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo_56bGsTBRYABNUGFZnQeEXeY6Z3GDaekyBSwXUQXNgdLHJwTVf0w09WwacYxmhO2WlPEOpu_1qVlMxzvfKmeEVGr0VdifOSMNOdsLYfb-nbyVC2icZFRsuADUc6EsWcLVRzIh4iHqpY/s1600/journal+(10).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo_56bGsTBRYABNUGFZnQeEXeY6Z3GDaekyBSwXUQXNgdLHJwTVf0w09WwacYxmhO2WlPEOpu_1qVlMxzvfKmeEVGr0VdifOSMNOdsLYfb-nbyVC2icZFRsuADUc6EsWcLVRzIh4iHqpY/s1600/journal+(10).png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-496e-d199-e7b0-516cba607235&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Follow the below steps for Master-Slave Replication in MongoDB:&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b&gt;Step 1:&lt;/b&gt; Create the required data directories. To configure a master-slave deployment, start a mongod instance (30001) as master. For MongoDB installation refer&lt;/span&gt;&lt;a href=&quot;http://jerwinroy.blogspot.in/2015/02/mongodb.html&quot; style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #1155cc; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;. So start an instance as follows:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --dbpath /data/example/masterdb/ --master &amp;nbsp;--port 30001&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvjFkNfujCB82hWpgYKCW5fiZ0skuY6TTME3JgtDDoXVMfEvBZWzJXwRZvKXbZScXHqbGNe8nZg9u1PDirPS9TeEQ_Zhj0kP4K-a4WWLqEyvJCjLAFNBjECcSmd1R1dWCt0kwx_dT_sH0/s1600/m-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;251&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvjFkNfujCB82hWpgYKCW5fiZ0skuY6TTME3JgtDDoXVMfEvBZWzJXwRZvKXbZScXHqbGNe8nZg9u1PDirPS9TeEQ_Zhj0kP4K-a4WWLqEyvJCjLAFNBjECcSmd1R1dWCt0kwx_dT_sH0/s1600/m-1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-496f-77df-22e8-4fae5c5cfb1f&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 2&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Start another mongod instance(30002) as a slave. So start an instance with the master port as a source &amp;nbsp;as follows:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --dbpath /data/example/slavedb1/ --slave --port 30002 --source=localhost:30001&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtZ-vVRRbhneUK7d614Ml1tzD3epsn4DpbMH0WrzEJ79cQyE2kgEKALlsZ2j-VArSVZxeXqy6IbZrPNo6aDjlt-wUmSTd1pOHxkmmnc3wK7bf_9cDKv32PUyxpgL_efeJgaCy7K_xEHLY/s1600/slave1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtZ-vVRRbhneUK7d614Ml1tzD3epsn4DpbMH0WrzEJ79cQyE2kgEKALlsZ2j-VArSVZxeXqy6IbZrPNo6aDjlt-wUmSTd1pOHxkmmnc3wK7bf_9cDKv32PUyxpgL_efeJgaCy7K_xEHLY/s1600/slave1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-496f-fc3c-442b-12f94fe60f7e&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 3&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Similarly start another slave(30003) with the master host and port as the source.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --dbpath /data/example/slavedb2/ --slave --port 30003 --source=localhost:30001&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWJ_Lb192ygu_mCTg0TeOBdevY2x0Y6WbQL8wlM2l5tzRRC5Fi0wKUvvCoY6z2vXKxzGXHTGeNuk89pVrcJbU-46unvU0aGm3kiYy-SdNAZPbiYaAJuEnmZlEMtzo2GxzRAlP4Sv0-1Lc/s1600/slave2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;266&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWJ_Lb192ygu_mCTg0TeOBdevY2x0Y6WbQL8wlM2l5tzRRC5Fi0wKUvvCoY6z2vXKxzGXHTGeNuk89pVrcJbU-46unvU0aGm3kiYy-SdNAZPbiYaAJuEnmZlEMtzo2GxzRAlP4Sv0-1Lc/s1600/slave2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4970-5dad-e66e-5b44152c3aad&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 4&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Similarly start another slave(30003) with the master host and port as the source.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --dbpath /data/example/slavedb3/ --slave --port 30004 --source=localhost:30001&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii868Q4zIm0DBwkYXDqGxqboE7hVJdUfhAVMQCXKHL9JUyBVMAyN6TooUOY1ROuwj_aJVPBhDkammrxwUG_dJ3jE1cMaiAgn5F2i6lwjUfiE-eubgNaTfKov14Ts5KpQuzgx3lFlN1cYw/s1600/slave3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;269&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii868Q4zIm0DBwkYXDqGxqboE7hVJdUfhAVMQCXKHL9JUyBVMAyN6TooUOY1ROuwj_aJVPBhDkammrxwUG_dJ3jE1cMaiAgn5F2i6lwjUfiE-eubgNaTfKov14Ts5KpQuzgx3lFlN1cYw/s1600/slave3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4970-e3f7-e1d7-13252ac2e897&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;b&gt;Step 5&lt;/b&gt;: Start the Mongo instance for the master with the required port(30001)&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongo localhost:30001/local&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The master interface looks as below:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWJpA3z4MoX7ArpNM73fygELPR_ONWirQT71Z7PJsGbnZIKi1guoPWIlWK6Cxeue5cpnVFY8raIxdcSqNzqDEb5DNWAO5zOSU2DoUH4GV8jfrwk3xNAHula98zJJTkI2_34YekqYzBAiY/s1600/slaves1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWJpA3z4MoX7ArpNM73fygELPR_ONWirQT71Z7PJsGbnZIKi1guoPWIlWK6Cxeue5cpnVFY8raIxdcSqNzqDEb5DNWAO5zOSU2DoUH4GV8jfrwk3xNAHula98zJJTkI2_34YekqYzBAiY/s1600/slaves1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 6:&lt;/span&gt; Start the Mongo instance for the slave with the required port(30002)&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongo localhost:30002/admin&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The slave interface looks as below:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaNf6adhL8QLDxtvSZfzzVM7diamsnO_mvMAiiwuMkNlCUTh9Pg4Xiin9hJ5lNRPzAGE2TgMzt8I0N_8vgYeQ5ZEvbKC6WeuHZ1B_aRCOWUp6lrzsfy5rogY_H6MhGRsFWSAo4AVrjEE0/s1600/slaves2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;254&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaNf6adhL8QLDxtvSZfzzVM7diamsnO_mvMAiiwuMkNlCUTh9Pg4Xiin9hJ5lNRPzAGE2TgMzt8I0N_8vgYeQ5ZEvbKC6WeuHZ1B_aRCOWUp6lrzsfy5rogY_H6MhGRsFWSAo4AVrjEE0/s1600/slaves2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 7&lt;/span&gt;: Start the Mongo instance for the slave with the required port(30002)&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongo localhost:30003/admin&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The slave interface looks as below:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIidyDCzdTyMlJPnED0URFUyR4ZRppbwHeI2NwnVrUx3vqDUxgXPMNHtuo5UW69yx9vcvFbH1OTK74rJxhbb1AyF-R1DhkJpjWAby4kuwHpYAaTgTnDqJO65V0oGCJ1P9jI02pwMenQMY/s1600/slaves3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIidyDCzdTyMlJPnED0URFUyR4ZRppbwHeI2NwnVrUx3vqDUxgXPMNHtuo5UW69yx9vcvFbH1OTK74rJxhbb1AyF-R1DhkJpjWAby4kuwHpYAaTgTnDqJO65V0oGCJ1P9jI02pwMenQMY/s1600/slaves3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Similarly, create another slave mongo instance as above of the port 30004.Now the master-slave replication has been done with a single master and three slaves.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To check use whether it is master or not use:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;db.isMaster()&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;If it is master it returns true.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy4Y5rg_367-R11DQp3k4gDFTQg5qtfMzIWnSxsg6B2UGKccBIaRIVCZlnisxla_n_vRDMrPELpQeB-WkO5O1duO6lZSmxjCrWz8aLGgBCsjjJYtUVRRM5QMpvbohtbmyo0gIWOKVs3Co/s1600/is_master.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy4Y5rg_367-R11DQp3k4gDFTQg5qtfMzIWnSxsg6B2UGKccBIaRIVCZlnisxla_n_vRDMrPELpQeB-WkO5O1duO6lZSmxjCrWz8aLGgBCsjjJYtUVRRM5QMpvbohtbmyo0gIWOKVs3Co/s1600/is_master.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4972-d113-d930-2b88a639f70c&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4972-d113-d930-2b88a639f70c&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;If it is a slave it returns &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4972-d113-d930-2b88a639f70c&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1WoApVXNTv0zb1tt4IGPT2VMM5j_mO-C4a4p_-2cE6IkAxJZuW6IbVmsOSWh6nyTsuL4Hk_8rm8el0BZQzUzJjzsXv2Eq-PnSVaTuFFkN1BrxfkLZ9I530PTqRhLKte4do2F892jrerw/s1600/is_master_no.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1WoApVXNTv0zb1tt4IGPT2VMM5j_mO-C4a4p_-2cE6IkAxJZuW6IbVmsOSWh6nyTsuL4Hk_8rm8el0BZQzUzJjzsXv2Eq-PnSVaTuFFkN1BrxfkLZ9I530PTqRhLKte4do2F892jrerw/s1600/is_master_no.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4974-01cd-2eca-dbb6ba37448a&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;To check whether the slave synced with master or behind use:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;rs.printReplicationInfo()&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNzSySIbAuuDyWr-nJ9qhYsRer5rOkdLl-mT1eD2AgYSP_us5tcQYqEGEUIaD0Z6zdwYMrM1Bg7rIjLR8FMLzmQWOsUJ8QAx__FqW3D4gOlh107KDSYaSf-zhZ2a0aSFO1cNtsfTyBU8c/s1600/print_replication.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNzSySIbAuuDyWr-nJ9qhYsRer5rOkdLl-mT1eD2AgYSP_us5tcQYqEGEUIaD0Z6zdwYMrM1Bg7rIjLR8FMLzmQWOsUJ8QAx__FqW3D4gOlh107KDSYaSf-zhZ2a0aSFO1cNtsfTyBU8c/s1600/print_replication.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4974-4ccc-2a7f-1d1ce2bdaf83&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;trebuchet ms&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That&#39;s all now you have configured out a master with three slaves in your machine. Hope it helps :)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/3244864132073467577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/mongodb-master-slave-replication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/3244864132073467577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/3244864132073467577'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/mongodb-master-slave-replication.html' title='MongoDB Master Slave Replication'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQpAJPrOpzHfOKJJRpFxKMuZvVzLRxWAUqvLynl4_KLZgXirIePchYL_jCYNqdPcM0Kx7GXIqzlJTCHBBNm2w3LQ9ZoLQELbhTYp2URG72-07K7EHYEMCwliNG-FdiCrlBsz6gIsv5Vo/s72-c/mongo_intro+%252812%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-6291431534674813326</id><published>2015-02-12T13:45:00.000+05:30</published><updated>2015-07-08T16:20:50.526+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="concept"/><category scheme="http://www.blogger.com/atom/ns#" term="journal"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><title type='text'>MongoDB Journal concepts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-4978-2ddb-61ee-7ffc3af455e8&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8jq8dsG8laZKmbKexn-PwygaD96hNMJK55eS8JxhazoADR7baLsRGxVq1c96ianO1E9auUa0rqdhYy5w5CfMZxdeOosc50d_DZVgszoLNwvI8D4drXd8QgrNHjKhmxNHShVOWIFEBukc/s1600/JC.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8jq8dsG8laZKmbKexn-PwygaD96hNMJK55eS8JxhazoADR7baLsRGxVq1c96ianO1E9auUa0rqdhYy5w5CfMZxdeOosc50d_DZVgszoLNwvI8D4drXd8QgrNHjKhmxNHShVOWIFEBukc/s320/JC.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; People started exploring MongoDB.The one of the best feature that mongodb has unique when compared to other databases is Journal.In this section we are going to see what is a mongodb journal,how to enable or disable it and how it works.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;What is a Journal in Mongodb ?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;A sequential, binary transaction log used to bring the database into a valid state in the event of a hard shutdown. Journaling writes data first to the journal and then to the core data files. MongoDB enables journaling by default for 64-bit builds of MongoDB version 2.0 and newer. Journal files are pre-allocated and exist as files in the data directory.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrIzlyvYRJMFTVyFb4XDgGuOP8bfYh9wCN5hZ4iIQzW9C2WJHtijKuDvgSxNDJYWvIkzHELsTQ2u3cwfJh5MY6Uki5zaIJp_HDZXcDFdTE7WALEwmcT2w2eFf3hyCb3_X0MPrLHJ7oKbA/s1600/journal.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrIzlyvYRJMFTVyFb4XDgGuOP8bfYh9wCN5hZ4iIQzW9C2WJHtijKuDvgSxNDJYWvIkzHELsTQ2u3cwfJh5MY6Uki5zaIJp_HDZXcDFdTE7WALEwmcT2w2eFf3hyCb3_X0MPrLHJ7oKbA/s1600/journal.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-497a-0d57-f962-a8c2cdbe800e&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Journal can also bring the database to a valid state even when it shutdowns.Journal first write the data into it and then to the core files.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;How to enable Journal?&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; MongoDB version 2.0 and newer versions have journal enabled by default.To enable journaling, start mongod with the --journal command line option.For example:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --port 27017 --journal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; If no journal files exist, when mongod starts, it must pre allocate new journal files. During this operation, the mongod is not listening for connections until preallocation completes: for some systems this may take a several minutes. During this period your applications and the mongo shell are not available.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;u&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;How to disable Journal?&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Disabling journal is not advised in the production systems.Suppose due to some power failure the mongod has gone unclean shutdown then in that case the data could be backup only if it journaling is enabled.To disable journaling, start mongod with the --nojournal command line option.For example:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --port 27017 --nojournal&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Views in Journaling:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The&lt;b&gt; shared view&lt;/b&gt; stores modified data for upload to the MongoDB data files. The shared view is the only view with direct access to the MongoDB data files. When running with journaling,mongod asks the operating system to map your existing on-disk data files to the shared view virtual memory view. The operating system maps the files but does not load them. MongoDB later loads data files into the shared view as needed.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The &lt;b&gt;private view &lt;/b&gt;stores data for use with read operations.The private view is the first place MongoDB applies new write operations. Upon a journal commit, MongoDB copies the changes made in the private view to the shared view,where they are then available for uploading to the database data files.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The journal is an on-disk view that stores new write operations after MongoDB applies the operation to the private view but before applying them to the data files. The journal provides durability. If the mongod instance were to crash without having applied the writes to the data files, the journal could replay the writes to the shared view for eventual upload to the data files.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwGPsSr9i0RcmmclSo3GpEEXUuYfv4qDU1ehX8BP4tpE2OzbIvz0MPKyMT9gP4E9NsQfID74v2OmLDfjOcuM2Dv0ixs1OGD4bZ2PNnyDBdmnVYLOiSeppC38arq2-_BW8STokOsgjFOxA/s1600/journal+(8).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;357&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwGPsSr9i0RcmmclSo3GpEEXUuYfv4qDU1ehX8BP4tpE2OzbIvz0MPKyMT9gP4E9NsQfID74v2OmLDfjOcuM2Dv0ixs1OGD4bZ2PNnyDBdmnVYLOiSeppC38arq2-_BW8STokOsgjFOxA/s1600/journal+(8).png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;How mongodb works without journaling?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Generally the mongodb consists of two views such as Shared view and Private view.If the mongodb works journaling disabled it uses only the Shared view.When the mongod server starts it maps the data files to the shared view by memory mapping.If you need to read a memory at some memory address then you can get that address but you cannot actually access that address.Also if you make any changes in the memory the operating system will flush them for every 60 seconds.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg14mcGa4-r1eUUqcsYDyAqH9FsEIFmvR68LDY-y5GhjdqNUh7jVEzuiCICSmygqLGpeuiRd2HqWwhegy2T472l1eccFEuiClkhWuoGGfneZsNp_kX7xLjdJ19ddjem0qUBxEN4Ie1lS4I/s1600/journal+(6).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg14mcGa4-r1eUUqcsYDyAqH9FsEIFmvR68LDY-y5GhjdqNUh7jVEzuiCICSmygqLGpeuiRd2HqWwhegy2T472l1eccFEuiClkhWuoGGfneZsNp_kX7xLjdJ19ddjem0qUBxEN4Ie1lS4I/s1600/journal+(6).png&quot; width=&quot;386&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-f6aa5469-4cf4-080a-06c4-9f4fb4b5ada3&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; How Journaling works?&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Cambria; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The mongodb with journaling enabled has two views such as Shared view and Private view.In journaling private view is not connected to the data file so that the operating system cannot flush out any changes from private view to the disk.When a write operation is carried way then the mongod writes it to the private view.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAQ9xghlnBCLi_5gABF_HTsDebcpxBk-pnjjpvSj0hzNqUvg3IHoIuI-3MznmftJ8gjXq6IpIGltXNlpNIW7v4bsXaPcx6KbcMEiJsWkhpnTOVjF4J-lIiWOev3oW0tdbuaB_BwU4ALmo/s1600/journal2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAQ9xghlnBCLi_5gABF_HTsDebcpxBk-pnjjpvSj0hzNqUvg3IHoIuI-3MznmftJ8gjXq6IpIGltXNlpNIW7v4bsXaPcx6KbcMEiJsWkhpnTOVjF4J-lIiWOev3oW0tdbuaB_BwU4ALmo/s400/journal2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-497c-3e8b-1e96-e816bf923c65&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Then the mongod will make the change to the journal with a small description what change has made within.The journal will keep the list of what all the changes made in the file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifo41f0ab0odhLV3cLdZE3Ecp2wcfvHoRIz7jrQRLll6KtH04BTbPNy13ZutjWixvAs_ErN9FfJCz22_sKsm3tg4cLVF-zPu2GsctJBvLPlfq0T1cXFdK_kJAw1rGMk5vOUx5Di7mQBHc/s1600/journal+(1).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifo41f0ab0odhLV3cLdZE3Ecp2wcfvHoRIz7jrQRLll6KtH04BTbPNy13ZutjWixvAs_ErN9FfJCz22_sKsm3tg4cLVF-zPu2GsctJBvLPlfq0T1cXFdK_kJAw1rGMk5vOUx5Di7mQBHc/s1600/journal+(1).png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-497b-e057-0269-6f196f0f32dc&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; If there is any power failure or unclean shutdown in the system then the mongod then it will move the changes to the shared view.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7wgXcRAx7CpcgYbIKXTU6X_F8ojlUd5ANTP6_m682er4Thdv0b3DBDzh7TwxD7PfXi3V-OQG92ROTedTVXTm01e-DkYO6c4H3IbzVybZ2h4UyEO4DOHzI4ffpkm7y8ddEMvQ-018neps/s1600/journal+(2).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7wgXcRAx7CpcgYbIKXTU6X_F8ojlUd5ANTP6_m682er4Thdv0b3DBDzh7TwxD7PfXi3V-OQG92ROTedTVXTm01e-DkYO6c4H3IbzVybZ2h4UyEO4DOHzI4ffpkm7y8ddEMvQ-018neps/s1600/journal+(2).png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-497c-85e1-8524-8061e3b32b5d&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With a small comparative speed the shared view will flush them to the data file.Hence if there is any crash in the mongod then it is easy to repair or recover the lost data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZF9lbDgj9six_l1VG3SZj9Oe2twBZtmOyQ0pceJz2lPAKs4bosTxeUn5mW6Cckfo_kCqCnfkQaA3zwSatMYautakJJ9AdYYINa_FzG16D6uZJSRKSCumzWFPoO-QbenrzKlJinFHs8as/s1600/journal+(3).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZF9lbDgj9six_l1VG3SZj9Oe2twBZtmOyQ0pceJz2lPAKs4bosTxeUn5mW6Cckfo_kCqCnfkQaA3zwSatMYautakJJ9AdYYINa_FzG16D6uZJSRKSCumzWFPoO-QbenrzKlJinFHs8as/s1600/journal+(3).png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-497c-ba19-bfdc-0458b23156a7&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Finally,the remap takes place between the Shared view and Private view so that the data in them will always remain in sync.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiozC_oyNeQnSqP5oC30vG8Xty47Oja0NS_-Z8HaqR7KxP7jMUbupiL8ybV6dyKIKr1Qxhahcvisimvb3z9CY48YhIxa4NlArtpchyKyunS5aPUDH79xP3FCvbMjS6wg66JXEL0hrmATTM/s1600/journal+(4).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;382&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiozC_oyNeQnSqP5oC30vG8Xty47Oja0NS_-Z8HaqR7KxP7jMUbupiL8ybV6dyKIKr1Qxhahcvisimvb3z9CY48YhIxa4NlArtpchyKyunS5aPUDH79xP3FCvbMjS6wg66JXEL0hrmATTM/s1600/journal+(4).png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-52219dc0-497c-f952-ffc4-ce8ad33f26b5&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Cambria; font-size: 18.6667px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;This is how journal in the mongodb works.Hope it helps :)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/6291431534674813326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/mongodb-journal-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/6291431534674813326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/6291431534674813326'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/mongodb-journal-concepts.html' title='MongoDB Journal concepts'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8jq8dsG8laZKmbKexn-PwygaD96hNMJK55eS8JxhazoADR7baLsRGxVq1c96ianO1E9auUa0rqdhYy5w5CfMZxdeOosc50d_DZVgszoLNwvI8D4drXd8QgrNHjKhmxNHShVOWIFEBukc/s72-c/JC.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3829719423918091225.post-316924810165393088</id><published>2015-02-12T11:43:00.002+05:30</published><updated>2018-11-01T12:02:29.248+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="installation"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mongodb"/><title type='text'>Install MongoDB binary on linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; id=&quot;docs-internal-guid-f6aa5469-4cfc-4b54-53f4-371ff6e6229d&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii7F7aDW_kpUDcMYShzcxed7RAKB2XoWhsyhRnCDww7iOTWbqwKGLBjutTlPNSh4Rd82wuRNHiw84zoJ74fltVWEADzh3_MHCAxEwZy6nq3WwlnpzPVngHA8vqtuzFhuvWvNG9Qoxa_yE/s1600/mongo_intro+%25283%2529.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii7F7aDW_kpUDcMYShzcxed7RAKB2XoWhsyhRnCDww7iOTWbqwKGLBjutTlPNSh4Rd82wuRNHiw84zoJ74fltVWEADzh3_MHCAxEwZy6nq3WwlnpzPVngHA8vqtuzFhuvWvNG9Qoxa_yE/s320/mongo_intro+%25283%2529.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on the concept of collection and document. It is also one of the leading NoSQL databases. It’s easy to install MongoDB binary file within five minutes if you follow the steps mentioned below. Here we go..!!&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 1&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Download the latest .tar.gz file from &amp;nbsp;this &lt;/span&gt;&lt;a href=&quot;https://www.mongodb.org/downloads&quot; style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline;&quot;&gt;link&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Its always better to download 64 bit for production rather than 32 bit because 32-bit MongoDB processes are limited to about 2 GB of data. But the 64 bit doesn&#39;t have that limitation. For development, both versions can be used.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 2&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Create a source directory and place the downloaded file in the source directory.For example (/usr/local)&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 3&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Now extract the downloaded file using the below command:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;tar zxf mongodb-linux-i686-1.6.0.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 4:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; Now rename the extracted(mongodb-linux-x86 64-2.6.3) file into MongoDB. &lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mv mongodb-linux-x86 64-2.6.3 ./mongodb&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 5&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Create a data directory using the below command&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;mkdir /data/db&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 6&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Create a user mongo_user using the following command&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;useradd mongod&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This user can have all the privileges to access the MongoDB database and directories.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 7&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Change the ownership of the files in the source and data directory using the following command&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;chown -R mongod.mongod /usr/local/&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;chown -R mongod.mongod /data/db/&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Changing the ownership gives the complete access for the users to access the source and the data directory.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 8&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Create a configuration file in any directory say vim /etc/mongod.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Now add the following details as shown below:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;verbose = true&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;dbpath = /data/db&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;logpath = /var/log/mongodb.log&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;logappend = true&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;port = 27017&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Verbose is an option that provides additional details what the computer is doing and what drivers and software it is loading during startup. Dbpath shows the data directory path. Logpath shows the path for the log file.Log append will append the log file. Port will specify which port the mongo shell will connect.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;Step 9&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Move to the bin folder in the source directory and now start the mongo server by the following command&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongod --config /etc/mongod.conf&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt; Step 10&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;: Within the bin folder in the source directory start the mongo client by the following command &lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;courier new&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;./mongo --port 27017&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: &amp;quot;cambria&amp;quot;; font-size: 18.666666666666664px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The interactive MongoDB prompt appears. That&#39;s it now you&#39;re done with the MongoDB binary installation. Time to play with MongoDB :)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jerwinroy.blogspot.com/feeds/316924810165393088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/mongodb.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/316924810165393088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3829719423918091225/posts/default/316924810165393088'/><link rel='alternate' type='text/html' href='http://jerwinroy.blogspot.com/2015/02/mongodb.html' title='Install MongoDB binary on linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01078076986153636821</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii7F7aDW_kpUDcMYShzcxed7RAKB2XoWhsyhRnCDww7iOTWbqwKGLBjutTlPNSh4Rd82wuRNHiw84zoJ74fltVWEADzh3_MHCAxEwZy6nq3WwlnpzPVngHA8vqtuzFhuvWvNG9Qoxa_yE/s72-c/mongo_intro+%25283%2529.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Nagercoil, Tamil Nadu, India</georss:featurename><georss:point>8.183285699999999 77.41189959999997</georss:point><georss:box>8.1204156999999988 77.331218599999971 8.2461557 77.492580599999968</georss:box></entry></feed>