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

262 questions
7
votes
0 answers

Heart Beat Detection with Camera

I am searching for a library to detect heart beats using an android phone's camera. As far as i see, apps with this capability use two ways: Placing your finger tip on the camera lens and watching the changes in frames in camera. Watching your…
mehmet6parmak
  • 4,777
  • 16
  • 50
  • 71
7
votes
1 answer

Heartbeat extension: does it make sense to allow for arbitrary payload?

https://www.rfc-editor.org/rfc/rfc6520 does not explain why a heartbeat request/response round-trip is supposed to contain a payload. It just specifies that there is room for payload and that the response has to contain the same payload as the…
Dr. Jan-Philip Gehrcke
  • 33,287
  • 14
  • 85
  • 130
6
votes
1 answer

Taking photo every 66 milliseconds on Android phone for colour analysis (Heart Rate Monitor)

I'm doing a final year project at university which involves making a medical application for Android, as a practice I have to make a heart rate monitor app. I have worked out that the best way to do this is to look for colour changes in your blood…
Antony
  • 65
  • 2
  • 8
6
votes
1 answer

How can 2 threads communicate each other?

Thread A is summing up data passed from 10 clients. while(true){ Socket clientfd= server.accept (); BufferedReader message = new BufferedReader(new InputStreamReader (clientfd.getInputStream() ) ); String val = message.readLine(); …
user482594
  • 16,878
  • 21
  • 72
  • 108
6
votes
1 answer

REST API heart beat standard

For a SaaS product which provide its services via REST API, is it a standard requirement to have a heartbeat API? I have a debate on this subject at work, in my point of view, the heartbeat API is redundant - in case of outages we have a status…
planben
  • 680
  • 6
  • 20
6
votes
1 answer

How to change RabbitMQ Heartbeat without restart

There are several questions here in SO about RabbitMQ heartbeat but I haven't found one addressing how to actually change the default heartbeat value of 60 seconds (580 seconds in previous versions). In the case when a consumer is running for longer…
lloiacono
  • 4,714
  • 2
  • 30
  • 46
6
votes
2 answers

Java heartbeat design

I need to implement a heartbeat system on my Java project (3-5 Clients with 1 server for them) but I have some questions. 1) Do I need to have 2 sockets by clients ? 1 for the heartbeat and 1 to receive normal message for my software 2) I saw that…
Tata2
  • 893
  • 2
  • 8
  • 14
6
votes
2 answers

Detecting HeartBeat Using WebCam?

I am trying to create an application which can detect heartbeat using your computer webcam. I am working on the code since 2 weeks and developed this code and here I got so far How does it works? Illustrated below ... Detecting face using…
B L Λ C K
  • 600
  • 1
  • 8
  • 24
6
votes
1 answer

How to get HRV (Heart Rate Variability) from HR (Heart Rate)

I am working on application in which I have to read heart beat till one minute and calculate heart rate variability from it. for reading heart beat I am using strap(Polar) Heart beat reading code I have used from link for calculating HRV I gone…
Chitra Khatri
  • 1,260
  • 2
  • 14
  • 31
6
votes
3 answers

Ajax Heartbeat using setInterval, Preventing multiple calls at the same time

I wish to make an AJAX call using jQuery as a "heartbeat" in the background so that my web application can check for new data. For example every 10 seconds. I have seen on other posts that it is possible to use setInterval() to call a method which…
Luke
  • 22,826
  • 31
  • 110
  • 193
5
votes
3 answers

Is there a way to kill the erlang vm when it is running with -heart?

The title pretty much sums it up. I have a zotonic site running with -heart, it uses lots of cpu time and I can't get an erlang shell. So, is there a way to kill the vm? killall heart and killall beam.smp are not working. I found this question: Stop…
Simon Lindgren
  • 500
  • 1
  • 6
  • 14
5
votes
2 answers

usage of erlang heart

How should heart be used to keep an application alive? Lets say I have an application X, will it be monitored if I just call something like: erl -boot X -heart -env HEART_BEAT_TIMEOUT 30 -detached ?
Daniel
  • 20,420
  • 10
  • 92
  • 149
5
votes
2 answers

CouchDB heart-beat time-out

My CouchDB (production) server is sometimes shut down, without my wanting it to. While inspecting logs I noticed Erlang/CouchDB (one or the other) sends a heart beat, and that heart beat is monitored. When a time-out occurs, the server is brutally…
Peter Kruithof
  • 10,584
  • 6
  • 29
  • 42
5
votes
4 answers

How to create a background threaded on interval function call in python?

I am trying to implement a heartbeat call that works in the background. How do I create a threaded on interval call of say every 30 seconds, which calls the following function: self.mqConn.heartbeat_tick() Also how would I stop this thread? Many…
TheBear
  • 827
  • 2
  • 10
  • 21
5
votes
0 answers

Connecting a Heart Rate Monitor to a Windows PC Java application

I'm currently working on a project which requires my java program to keep track of a users current heart rate. Now, my problem is that i seem to be unable to find any sort of heart rate monitor which is able to connect to a java program running on a…
1
2
3
17 18