|
I have two components that that communicate via TCP/IP. Component A acts as a server/listener and Component B is the client. The two should communicate as quickly as possible. There can only ever be one connection at any time (though that is aside to ...
Started by rob_g on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
The connection will remain open - there....
Your socket may appear open, but the person is.
What you call a heartbeat is useful when trying to set timeouts.
A heartbeat in order to help detect dead connections, IRC with it's ping for example.
|
|
Hey gang. I have just written a client and server in C++ using sys/socket. I need to handle a situation where the client is still active but the server is down. One suggested way to do this is to use a heartbeat to periodically assert connectivity. And...
Started by windfinder on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The process has died, the machine has gone down is merely hung, the socket will remain....
Maybe this will help you, TCP Keepalive HOWTO or this SO_SOCKET
If the other side has gone away (i.e .
To build your own heartbeat into your protocol.
|
|
Does anyone have experience configuring drbd with heartbeat between 2 virtual linux machines (VMWare Infrastructure)?
The problem I am running into is that heartbeat likes multiple data paths to see its peer node. For instance, it likes to have a network...
Started by Brent on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Not everyone (e.g..
Caveat emptor: heartbeat 2 uses XML config files.
Host is down for sure ; in a VM you might try a script that switches the other VM off via the VMware like on heartbeat 1 by drbd.
|
Ask your Facebook Friends
|
We have an RMI client application written in Java which needs to send periodic "stay alive" messages to a server application. We have implemented this as a separate heartbeat thread, which sends the stay alive message to the server, then sleeps for 15...
Started by Simon Nickerson on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
It may also be advisable to set if your server times out your client after ... .
You could send the heartbeat in a different thread to prevent the time it takes to send the heartbeat being added to your delay.
You can not really guarantee it.
|
|
Using DRBD version: 8.2.6 (api:88/proto:86-88)
Here is the contents of /etc/ha.d/haresources
db1 192.168.100.200/24/eth0 drbddisk::mysql Filesystem::/dev/drbd0::/drbd::ext3::defaults mysql
and /etc/ha.d/ha.cf
logfile /var/log/ha-log logfacility local0...
Started by Andy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
I'm not very good with heartbeat, but with pacemaker I would to the disk (or down mysql....
The way to test heartbeat would be that you will issue service heartbeat stop on one machine at the Pacemaker and Linux-HA mailing lists.
|
|
I'm looking at setting up automatic failover for Apache and MySQL. I'm planning on putting a small proxy server in front of two Apache boxes, and two MySQL boxes. Apache will rsync data from the master -> slave every so often, and MySQL will be set...
Started by dragonmantank on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Just set heartbeat.
If you want simple, go with heartbeat 1; heartbeat 2 went to more-active configuration, including full web service and full proxy service on both(!).
Linux HA is a nice toolset.
|
|
Recently I've added some load-balancing capabilities to a piece of software that I wrote. It is a networked application that does some data crunching based on input coming from a SQL database. Since the crunching can be pretty intensive I've added the...
Started by Miky D on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You can the heartbeat includes a "reboot....
Be careful that the aggregate bandwidth used isn't a drain on resources .
Broadcast a heartbeat every t using UDP; if you haven't heard from a machine in more than k*t, then it's assumed down.
|
|
I'm looking at implementing a "Heartbeat" process to do a lot of repeated cleanup tasks throughout the day.
This seemed like a good chance to use the Command pattern, so I have an interface that looks like:
public interface ICommand { void Execute(); ...
Started by Simucal on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You also get the option to do.
The code you will need to write if you choose to go down this path.
|
|
I forgot to ask this at my doc appt last week... if I feel her hiccups in the lower left of my abdomen (a little lower than my belly button), and the doctor finds her heartbeat with the doppler on the lower right- would that probably mean she is in the...
Started by MrsPinkPeony on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at thebump):
He's been head down for the last....
That's where I feel C's hiccups and find his heartbeat.
Here's to hoping she stay in the position she should .
She still has some room to tumble around though.
It does most likely mean she's head down.
|
|
My thoughts and prayers are with you - We had a situation last summer where our ultrasound showed a fetus at 8 weeks (with a slow heartbeat Heart palpitations
Ultrasound, normal fetus - heartbeat
Ultrasound, ventricular septal defect - heartbeat ) but...
Started by Marybeth on
, 86 posts
by 65 people.
Answer Snippets (Read the full thread at medhelp):
I am now 29 weeks! Cramping you had problems in the past? Thank you... .
I was devastated and there was a strong heartbeat, the fetus measured about 6.5 weeks.
The doctor recommended a D&C.
Which did not seem right to me), but NO heartbeat.
|