{"id":749,"date":"2013-09-09T01:55:21","date_gmt":"2013-09-09T01:55:21","guid":{"rendered":"http:\/\/blog.zhukunqian.com\/?p=749"},"modified":"2013-09-13T10:22:55","modified_gmt":"2013-09-13T10:22:55","slug":"%e4%b8%80%e7%af%87nosql%e5%86%85%e5%ad%98%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e6%96%87%e7%ab%a0","status":"publish","type":"post","link":"http:\/\/blog.zhukunqian.com\/?p=749","title":{"rendered":"\u4e00\u7bc7nosql\u5185\u5b58\u6570\u636e\u5e93\u7684\u6587\u7ae0"},"content":{"rendered":"<p>http:\/\/www.csdn.net\/article\/2013-04-11\/2814850-877000-tps-with-erlang-and-voltdb<\/p>\n<p>1\u3001voltdb\u5b89\u88c5\u5f88\u7b80\u5355\uff0c\u89e3\u538b\u5373\u53ef\u3002<\/p>\n<p>\u5728\u5b98\u7f51\u4e0a\u63d0\u5230\u6709\u51e0\u70b9\u5f71\u54cd\u6027\u80fd\u7684\u7cfb\u7edf\u8bbe\u7f6e:<\/p>\n<p>http:\/\/voltdb.com\/docs\/EnterpriseReleaseNotes\/<\/p>\n<p>&nbsp;<\/p>\n<table summary=\"Q and A Set\" width=\"100%\" border=\"0\">\n<tbody>\n<tr title=\"1.1.\">\n<td align=\"left\" valign=\"top\"><strong>1.1.<\/strong><\/td>\n<td align=\"left\" valign=\"top\">Disable Swapping<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><\/td>\n<td align=\"left\" valign=\"top\">Swapping is an operating system feature that optimizes memory usage when running multiple processes. However, memory is a critical component of the VoltDB server process. Any contention for memory, including swapping, will have a very negative impact on performance and functionality.<\/p>\n<p>We recommend using dedicated servers and disabling swapping when running the VoltDB database server process. Use the <code>swapoff<\/code> command to disable swapping on Linux systems. If swapping cannot be disabled for any reason, you can reduce the likelihood of VoltDB being swapped out by setting the kernel parameter <code>vm.swappiness<\/code> to zero.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table summary=\"Q and A Set\" width=\"100%\" border=\"0\">\n<tbody>\n<tr class=\"question\" title=\"1.2.\">\n<td align=\"left\" valign=\"top\"><strong>1.2.<\/strong><\/td>\n<td align=\"left\" valign=\"top\">Turn off TCP segmentation offload and generic receive offload if cluster stability is a problem.<\/td>\n<\/tr>\n<tr class=\"answer\">\n<td align=\"left\" valign=\"top\"><\/td>\n<td align=\"left\" valign=\"top\">There is an issue where, under certain conditions, the use of TCP segmentation offload (TSO) and generic receive offload (GRO) can cause nodes to randomly drop out of a cluster. The symptoms of this problem are that nodes timeout \u2014 that is, the rest of the cluster thinks they have failed \u2014 although the node is still running and no other network issues (such as a network partition) are the cause.<\/p>\n<p>Disabling TSO and GRO is recommended for any VoltDB clusters that experience such instability. The commands to disable offloading are the following, where <span class=\"emphasis\"><em>N<\/em><\/span> is replaced by the number of the ethernet card:<\/p>\n<div class=\"informalexample\">\n<pre class=\"programlisting\">ethtool -K eth&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;N&lt;\/em&gt;&lt;\/span&gt; tso off\r\nethtool -K eth&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;N&lt;\/em&gt;&lt;\/span&gt; gro off<\/pre>\n<\/div>\n<p>Note that these commands disable offloading temporarily. You must issue these commands every time the node reboots.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<table summary=\"Q and A Set\" width=\"100%\" border=\"0\">\n<tbody>\n<tr class=\"question\" title=\"1.2.\">\n<td align=\"left\" valign=\"top\"><strong>1.2.<\/strong><\/td>\n<td align=\"left\" valign=\"top\">Turn off TCP segmentation offload and generic receive offload if cluster stability is a problem.<\/td>\n<\/tr>\n<tr class=\"answer\">\n<td align=\"left\" valign=\"top\"><\/td>\n<td align=\"left\" valign=\"top\">There is an issue where, under certain conditions, the use of TCP segmentation offload (TSO) and generic receive offload (GRO) can cause nodes to randomly drop out of a cluster. The symptoms of this problem are that nodes timeout \u2014 that is, the rest of the cluster thinks they have failed \u2014 although the node is still running and no other network issues (such as a network partition) are the cause.<\/p>\n<p>Disabling TSO and GRO is recommended for any VoltDB clusters that experience such instability. The commands to disable offloading are the following, where <span class=\"emphasis\"><em>N<\/em><\/span> is replaced by the number of the ethernet card:<\/p>\n<div class=\"informalexample\">\n<pre class=\"programlisting\">ethtool -K eth&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;N&lt;\/em&gt;&lt;\/span&gt; tso off\r\nethtool -K eth&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;N&lt;\/em&gt;&lt;\/span&gt; gro off<\/pre>\n<\/div>\n<p>Note that these commands disable offloading temporarily. You must issue these commands every time the node reboots.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.csdn.net\/article\/2013-04-11\/2 &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/blog.zhukunqian.com\/?p=749\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/749"}],"collection":[{"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=749"}],"version-history":[{"count":3,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/749\/revisions"}],"predecessor-version":[{"id":751,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=\/wp\/v2\/posts\/749\/revisions\/751"}],"wp:attachment":[{"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.zhukunqian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}