Announcement

Collapse
No announcement yet.

How to programmatically check if a VoltDB instance is in admin mode?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to programmatically check if a VoltDB instance is in admin mode?

    How do I check from the terminal if a VoltDB instance is in admin mode or not? (I'd rather not grep the log for "Starting in admin", "entering admin" and "exiting admin"...)

    Thanks,
    Christo

  • #2
    You can get this from @SystemInformation OVERVIEW, the CLUSTERSTATE property will be either RUNNING or PAUSED.

    For example:
    $ echo "exec @SystemInformation OVERVIEW;" | sqlcmd | grep CLUSTERSTATE
    0 CLUSTERSTATE RUNNING
    $ voltadmin pause
    $ echo "exec @SystemInformation OVERVIEW;" | sqlcmd | grep CLUSTERSTATE
    0 CLUSTERSTATE PAUSED

    Comment


    • #3
      Nice thanks - Christo

      Comment

      Working...
      X