-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enhance the plugin status
command
#3101
Conversation
❗ By default, the pull request is configured to backport to all release branches.
|
@YanniHu1996 to fix the linter issues you should run |
9fe4463
to
b8d86c2
Compare
b8d86c2
to
c36aaf8
Compare
❗ By default, the pull request is configured to backport to all release branches.
|
❗ By default, the pull request is configured to backport to all release branches.
|
12ca5df
to
30f7585
Compare
plugin status
command
30f7585
to
af347f7
Compare
plugin status
command plugin status
command
WHERE application_name LIKE $1 AND usename = $2`, | ||
fmt.Sprintf("%s-%%", instance.ClusterName), | ||
WHERE application_name ~ $1 AND usename = $2`, | ||
fmt.Sprintf("%s-[0-9]+$", instance.ClusterName), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I don't know if this changes should be in this patch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change to this SQL is to filter out rows that are not represented as replication to standby instances, such as a wal sender with the application name <cluster-name-1-join>
used by basebackup
should not appear in the section Streaming Replication status
for status
command
616185b
to
f7b225e
Compare
/test limit=local |
@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6617646214 |
Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
The reassig didn't produce any effects Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
Signed-off-by: Tao Li <tao.li@enterprisedb.com>
8858515
to
8510b96
Compare
/ok-to-merge |
We've problems with the PRs opened from repositories other than |
`kubectl cnpg status` will now show information about the progress of backups taken with `pg_basebackup`, allowing monitoring the replica cloning process. Closes: #3011 Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Tao Li <tao.li@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Tao Li <tao.li@enterprisedb.com> (cherry picked from commit 2c29519)
`kubectl cnpg status` will now show information about the progress of backups taken with `pg_basebackup`, allowing monitoring the replica cloning process. Closes: #3011 Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Tao Li <tao.li@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Tao Li <tao.li@enterprisedb.com> (cherry picked from commit 2c29519)
`kubectl cnpg status` will now show information about the progress of backups taken with `pg_basebackup`, allowing monitoring the replica cloning process. Closes: #3011 Signed-off-by: YanniHu1996 <yantian.hu@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Tao Li <tao.li@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Co-authored-by: Tao Li <tao.li@enterprisedb.com> (cherry picked from commit 2c29519)
closes: #3011
While working on this issue, I found that we have an opportunity to reduce the response time of
status
API by the way used in this PRcloudnative-pg/pkg/management/postgres/probes.go
Lines 66 to 73 in af347f7
Opened a new issue #3121 for tracing it