We're Moving!

The Vertica Forum is moving to a new OpenText Analytics Database (Vertica) Community.

Join us there to post discussion topics, learn about

product releases, share tips, access the blog, and much more.

Create My New Community Account Now


Trying to find lightweight heartbeat query to determine if a node is up in a Vertica Cluster — Vertica Forum

Trying to find lightweight heartbeat query to determine if a node is up in a Vertica Cluster

We have tried to use a number of different queries to serve as a heartbeat mechanism between our application and our Vertica cluster, and all seem to incur a fair amount of overhead (i.e. global catalog locking, internode communication).   Have any of you found a lightweight query to a serve as a heartbeat, or, perhaps, use a different mechanism entirely to determine if a node in your Vertica cluster is up/down?

 

Thanks in advance

Comments

  • You can use "select 1".  Or use the native connection load balancer with connection failover.

     

      --Sharon

     

     

     

     

  • skeswaniskeswani - Select Field - Employee

    There are three type of heatbeats you can use,

     

    in descending order of weight (heavy to light) and ascending order to scope (cluster, node, socket)

     

    -- cluster check
    vsql -c "select 1;"

     

    -- node  check
    vsql -h node001 -c "select /* +KV(P0) */ 1;"

     

    -- tcp  check
    vsql -c "\q"

  • Thanks a lot for the feedback.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file