Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Wed Nov 26, 2003 4:56 am 
Offline
Linode Staff
User avatar

Joined: Fri Oct 17, 2003 12:38 am
Posts: 287
Location: Dr Wierd's Lab, South Jersey Shore
just curious, but why 9 ircds?


Top
   
 Post subject:
PostPosted: Wed Nov 26, 2003 2:40 pm 
Offline
Senior Member

Joined: Thu Aug 28, 2003 12:57 am
Posts: 273
So far my results seem to show that a tcp_keepalive_time of 1650 causes SSH timeouts, but 1500 does not. I'm trying to narrow it down a little further.


Top
   
 Post subject:
PostPosted: Wed Nov 26, 2003 2:42 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Just for reference, the bridging that occurs on the hosts essentially dumps Ethernet frames onto the local network (the switch) -- the host's don't have any concept of TCP connections between your Linodes and the world. It's just layer-2 bridging.

There is a known issue that affects a few of the hosts, including host5 and host6. Apparently, when someone joins the bridge it blips the bridge long enough to disturb at least some of the people already on the bridge.

I'm scheduling a reboot for host6 and will test the fix. If everything goes well, I'll schedule reboots for the rest of the hosts that are affected as well.

Now, as far as idle ssh connections being timed out, you can try this (worked for me):

Code:
# send keepalive packets every 5 minutes
echo 300 > /proc/sys/net/ipv4/tcp_keepalive_time

#I also added this to my /etc/sshd/sshd_config:
KeepAlive yes
ClientAliveInterval 10

/etc/init.d/ssh restart


logout and reconnect. My idle ssh session remained connected over night.

-Chris


Last edited by caker on Wed Nov 26, 2003 3:54 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed Nov 26, 2003 3:52 pm 
Offline
Senior Member

Joined: Sun Nov 02, 2003 2:05 pm
Posts: 58
mikegrb wrote:
just curious, but why 9 ircds?



$x9=more money
$x1=less money


Top
   
 Post subject: idle ssh sessions dying?
PostPosted: Wed Nov 26, 2003 6:47 pm 
Offline
Senior Newbie

Joined: Mon Oct 27, 2003 5:33 pm
Posts: 17
I find it odd that idle ssh sessions are dying.

I generally keep ssh sessions open from at least 2 systems in seperate locations (ie, home/work) to my linode and use screen to jump back and forth.

using putty or openssh as the client i have no real disconnect issues in the long-term. I believe my putty session from an XP system has been connected for about 2 weeks now.. and it sits idle for hours if not days at the time.

-E


Top
   
PostPosted: Wed Nov 26, 2003 8:55 pm 
Offline
Senior Member

Joined: Thu Aug 28, 2003 12:57 am
Posts: 273
OK, I've narrowed it down as far as I am going to go; the magic number is between 1600 and 1700.

If you set your /proc/sys/net/ipv4/tcp_keepalive_time value to 1600, your (otherwise not keep-alived) SSH sessions will not timeout.

If you set your /proc/sys/net/ipv4/tcp_keepalive_time value to 1700, your (otherwise not keep-alived) SSH sessions will timeout after about half an hour.

Anyone who is not experiencing SSH timeouts probably either already has their tcp_keepalive_time value set low enough, or has SSH set to do keepalives.

I recommend using the tcp_keepalive_time value rather than SSH keepalives, because the former will work for all kinds of network connections, the latter only for SSH.


Top
   
PostPosted: Fri Nov 28, 2003 12:18 pm 
Offline
Senior Member

Joined: Sat Aug 30, 2003 6:35 am
Posts: 57
bji wrote:
I recommend using the tcp_keepalive_time value rather than SSH keepalives, because the former will work for all kinds of network connections, the latter only for SSH.


Ok, but how do we set tcp_keepalive_time?

-Ashen


Top
   
PostPosted: Sat Nov 29, 2003 4:21 pm 
Offline
Senior Member

Joined: Thu Aug 28, 2003 12:57 am
Posts: 273
Ashen wrote:
bji wrote:
I recommend using the tcp_keepalive_time value rather than SSH keepalives, because the former will work for all kinds of network connections, the latter only for SSH.


Ok, but how do we set tcp_keepalive_time?

-Ashen


echo VALUE > /proc/sys/net/ipv4/tcp_keepalive_time

Put this an an rc startup file (such as /etc/rc.d/rc.local) to effect this setting on every boot.


Top
   
PostPosted: Sun Nov 30, 2003 2:59 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
bji wrote:
echo VALUE > /proc/sys/net/ipv4/tcp_keepalive_time

Put this an an rc startup file (such as /etc/rc.d/rc.local) to effect this setting on every boot.


While that will work just fine, the canonical Linux method is to use /etc/sysctl.conf, adding a line like:

Code:
net.ipv4.tcp_keepalive = 1500


See sysctl.conf(5) and sysctl(8) for details.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: dobriain and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group