最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

database - Identify primary and replica on QuestDB - Stack Overflow

programmeradmin1浏览0评论

I have a QuestDB Enterprise cluster, and I would like to be able to know if I am working with a primary or a replica from the web console.

I can execute a query like select value from (show parameters) where property_path='replication.role'; to get back primary or replica, but what I would like is some way of adding visually to the web console the label directly, in the same way that at the bottom right it shows the QuestDB version I am using.

I have a QuestDB Enterprise cluster, and I would like to be able to know if I am working with a primary or a replica from the web console.

I can execute a query like select value from (show parameters) where property_path='replication.role'; to get back primary or replica, but what I would like is some way of adding visually to the web console the label directly, in the same way that at the bottom right it shows the QuestDB version I am using.

Share Improve this question asked Mar 4 at 16:06 Javier RamirezJavier Ramirez 4,0951 gold badge27 silver badges36 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

There is a trick that works both for QuestDB Open Source and for QuestDB Enterprise.

These two environment variables are picked by the web console:

export QDB_INSTANCE_NAME=WhatEverName
export QDB_INSTANCE_RGB=b

The second option needs to be lowercase r,g, or ,b and it will set the background for the text you enter for the first variable. This displays at the top left of your web console, as in this screenshot.

发布评论

评论列表(0)

  1. 暂无评论