Questions tagged [heartbeat]

Heartbeat (as of version 3.x) is a cluster messaging layer, often combined with pacemaker as the cluster resource manager.

A detailed explanation, including historical notes, can be found at: http://www.linux-ha.org/wiki/Heartbeat

243 questions
73
votes
11 answers

ZooKeeper alternatives? (cluster coordination service)

ZooKeeper is a highly available coordination service for data centers. It originated in the Hadoop project. One can implement locking, fail over, leader election, group membership and other coordination issues on top of it. Are there any…
16
votes
1 answer

How does rabbitmq heartbeat work

The native rabbitmq client for java allows to setup heartbeat on connection settings, for example like this: import com.rabbitmq.client.ConnectionFactory; ... ConnectionFactory connectionFactory = new ConnectionFactory(); …
Oleg Majewski
  • 889
  • 1
  • 8
  • 12
13
votes
2 answers

how to indentify finger is on the camera lens or not in android?

I am trying to measure Heart Beat using the camera in android device. As far as i see, Placing your finger tip on the camera lens and watching the changes in frames in camera. I have tried the application here but it does not seem to be correct.
Dara Saini
  • 293
  • 1
  • 3
  • 15
12
votes
1 answer

how to measure HeartBeat using an android device

My question is very simple and straight forward. Is there any technique through which i can calculate the heartbeat of a person using android device. I googled it and found some results in which they implemented it using camera. Any other idea…
N-JOY
  • 10,164
  • 7
  • 47
  • 69
11
votes
1 answer

Difference between a ping and a heartbeat?

I have never heard of the heartbeat until the heartbleed bug. I wonder what is the difference between this and a ping, and if there are other signals to manage the connection (also, which are not data packages).
Quora Feans
  • 739
  • 1
  • 9
  • 20
9
votes
5 answers

What is the best way to implement a heartbeat in C++ to check for socket connectivity?

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…
Alex
  • 6,479
  • 9
  • 48
  • 68
9
votes
1 answer

Why is my wearable not listed as DataSource in Google Fit API?

I'm trying to access the heart rate monitor of a Samsung Gear Live watch. The watch is paired with a 4.4.4 handset and works correctly. I'm following the official BasicSensorsApi sample. I can successfully connect to Google Play Services with the…
EyesClear
  • 26,173
  • 7
  • 28
  • 41
9
votes
5 answers

Python - Detect if remote computer is on

So, I have an application in Python, but I want to know if the computer (which is running the application) is on, from another remote computer. Is there any way to do this? I was thinking to use UDP packets, to send some sort of keep-alive, using a…
jndok
  • 859
  • 3
  • 12
  • 28
9
votes
1 answer

In Socket.IO, is 'heartbeat' an event that can be used to trigger other actions?

This exact code doesn't work, but, I was hoping something like it was: io.sockets.on('connection', function(socket) { socket.on('heartbeat', function() { // Do something here... }); }); Is something like this possible? I mean, I…
KyleFarris
  • 16,408
  • 4
  • 40
  • 40
8
votes
2 answers

node.js sockets.io disconnecting every ~25 seconds (heartbeat-related)

I'm trying to set up a node.js server, using socket.io. The problem I'm seeing is that my server is disconnecting+reconnecting the client every 25 seconds. Here's my server code: var io =…
Josh1billion
  • 14,554
  • 8
  • 33
  • 45
8
votes
5 answers

How would you change my Heartbeat process written in C#?

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 { …
mmcdole
  • 86,293
  • 60
  • 181
  • 221
7
votes
2 answers

Trouble with Netty IdleStateHandler - am I testing it the wrong way?

I have a toy Netty server and am trying to send heartbeat messages to clients when nothing has happened on their channels. I am testing this by telnetting to the server, writing a message and then not sending anything, but I get no…
nflacco
  • 4,832
  • 6
  • 39
  • 74
7
votes
5 answers

Pausing all threads in current process at run time

I have a bug in my app that seems to show it's face only when I pause the app in the debugger for a few minutes. I suspect this is due to a third party networking library I am using having a heartbeat thread, which becomes disconnected when it can…
AlexC
  • 1,616
  • 1
  • 13
  • 24
7
votes
1 answer

RabbitMQ heartbeat vs connection drain events timeout

I have a rabbitmq server and a amqp consumer (python) using kombu. I have installed my app in a system that has a firewall that closes idle connections after 1 hour. This is my amqp_consumer.py: try: # connections with…
Mr T.
  • 3,810
  • 6
  • 32
  • 57
7
votes
1 answer

Linux HA / cluster: what are the differences between Pacemaker, Heartbeat, Corosync, wackamole?

Can you help me understand Linux HA? Pacemaker, Heartbeat, Corosync seem to be part of a whole HA stack, but how do they fit together? How does wackamole differ from Pacemaker/Heartbeat/Corosync? I've seen opinions that wackamole is better than…
Continuation
  • 11,664
  • 19
  • 77
  • 102
1
2 3
16 17