You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2014/10/25 00:12:23 UTC
[Cassandra Wiki] Update of "FAQ" by mriou
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The "FAQ" page has been changed by mriou:
https://wiki.apache.org/cassandra/FAQ?action=diff&rev1=166&rev2=167
Comment:
Added recommended steps when running into bootstrapping issues during streaming.
* [[#memlock|Cassandra dies with "java.lang.OutOfMemoryError: Map failed"]]
* [[#opp|Why should I avoid order-preserving partitioners?]]
* [[#clocktie|What happens if two updates are made with the same timestamp?]]
+ * [[#bootstreamfail|Why bootstrapping a new node fails with a "Stream failed" error?]]
<<Anchor(cant_listen_on_ip_any)>>
@@ -450, +451 @@
{{https://c.statcounter.com/9397521/0/fe557aad/1/|stats}}
+ <<Anchor(bootstreamfail)>>
+ == Why bootstrapping a new node fails with a "Stream failed" error? ==
+
+ Two main possibilities:
+ 1. the GC may be creating long pauses disrupting the streaming process
+ 2. compactions happening in the background hold streaming long enough that the TCP connection fails
+
+ In the first case, regular GC tuning advices apply. In the second case, you need to set TCP keepalive to a lower value (default is very high on Linux). Try to just run the following:
+
+ $ sudo /sbin/sysctl -w net.ipv4.tcp_keepalive_time=60 net.ipv4.tcp_keepalive_intvl=60 net.ipv4.tcp_keepalive_probes=5
+
+ To make those settings permanent, add them to your /etc/sysctl.conf file.
+
+ Note: GCE's firewall will always interrupt TCP connections that are inactive for more than 10 min. Running the above command is highly recommended in that environment.
+
+
+ See [Partitioners].
+