The sixth chapter of PostgreSQL Replication Monitoring your settings (3)

Source: Internet
Author: User
6.3 Checking the operating system process

Once we have checked the archive and our system view, we are ready to check the system process. Checking the system process may look a bit rough, but it proves to be very effective.

On master, we can simply check a process called Wal_sender. On slave we want to check for a process called wal_receiver.

Let's first examine what we should see on master:

9314?? Ss 0:00.00 Postgres:wal Sender Process

HS:: 1 (61498) idle

On Linux we can see that the process not only has its own role (in this case, Wal_sender), but also comes with the name of the end user and the associated network connection information. In our example we can see that someone has already connected to master from a local port via 61498.

The situation on the slave is fairly simple:

9313?? Ss 0:00.00 Postgres:wal Receiver Process

All we see is a process that tells us that we are consuming xlog.

If there are two processes here, you've got a good indicator and your copy setup works well.

The sixth chapter of PostgreSQL Replication Monitoring your settings (3)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.