Code Monkey home page Code Monkey logo

Comments (10)

robbrucks avatar robbrucks commented on June 12, 2024 1

I've implemented a decent method of monitoring streaming on 9.2+, but it requires the config file mods from libzbxpgsql 1.1.

I'll put together a sample in the next few days and share it here.

--Rob

from libzbxpgsql.

Sungurik avatar Sungurik commented on June 12, 2024

Hello! Just interesting what is the status of this issue?

from libzbxpgsql.

cavaliercoder avatar cavaliercoder commented on June 12, 2024

Work hasn't started on this feature yet though I have done some research into how it should be measured. Scheduling is uncertain I'm afraid.

Code contributions are welcomed.

from libzbxpgsql.

Sungurik avatar Sungurik commented on June 12, 2024

Unfortunately I'm not a C programmer, but isn't it hard to add one key with one query "SELECT pg_is_in_recovery()"?
Also useful to know replication time lag in seconds:
SELECT extract(epoch from now() - pg_last_xact_replay_timestamp())

from libzbxpgsql.

cavaliercoder avatar cavaliercoder commented on June 12, 2024

That should be fairly simple, yes. If it would be valuable I can look to add it soon. Testing my memory, but I was looking at ways to query the transaction log position on all cluster members to determine their progress.

In the mean time, you can use the Query item keys to execute customer queries according to your needs.

from libzbxpgsql.

Sungurik avatar Sungurik commented on June 12, 2024

Thanks! Kindly in PostgreSQL I prefer to not use word "cluster" because it is just master-slave replication.

from libzbxpgsql.

cavaliercoder avatar cavaliercoder commented on June 12, 2024

I've heard it said before from other PostgreSQL users that clustering is not the right term. So I'll gladly reconsider. I grew up on Windows Failover Cluster Services which only supports active-passive but still counts itself as a cluster... I guess today it means something more impressive.

from libzbxpgsql.

robbrucks avatar robbrucks commented on June 12, 2024

OK - I've put something in Github for you guys to try out. Let me know if it works for you.
libzbxpgsql-streaming

from libzbxpgsql.

Marx1st avatar Marx1st commented on June 12, 2024

Any news on testing/implementing @robbrucks suggestion?

from libzbxpgsql.

cavaliercoder avatar cavaliercoder commented on June 12, 2024

It's a great suggestion and I'd love to implement it, but unfortunately my develop efforts are heavily steered by whatever projects I have going on at work. In the meantime, I'd gladly work with anyone on a pull request or recommend that you check out Rob's template: https://github.com/robbrucks/libzbxpgsql-streaming

from libzbxpgsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.