Vertica Uptime...

Moderator: NorbertKrupa

Post Reply
hopewell
Beginner
Beginner
Posts: 29
Joined: Wed Mar 27, 2013 10:39 pm

Vertica Uptime...

Post by hopewell » Tue May 14, 2013 3:12 am

Hello,

Is there an easy way to tell how long a Vertica database has been up for the entire cluster. Also, at a more granular level, can I tell how long an individual node has been online?

Thanks!

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Vertica Uptime...

Post by JimKnicely » Tue May 14, 2013 2:52 pm

Hi,

You can query the DATABASES system table to find the START_TIME of a database and calculate the up time.

For example:

Code: Select all

SELECT current_timestamp - start_time AS uptime FROM databases;
For node up times, maybe you can try a query like the following?

Code: Select all

SELECT node_name,
       current_timestamp - MAX(event_timestamp) AS uptime
  FROM node_states
 WHERE node_state = 'UP'
 GROUP
    BY node_name;
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

Post Reply

Return to “New to Vertica”