a warm standby takes over, hot standby does not catch up - Mailing list pgsql-admin

From bo gu
Subject a warm standby takes over, hot standby does not catch up
Date
Msg-id SNT131-w24E0E2FF4A56C2607DEA16DC940@phx.gbl
Whole thread Raw
List pgsql-admin
Recently, I crafted my site like this to achieve HA and load balancing:

                    ----------------------    
                    |       Apache       |
                    |         |          |
                    |       read         |   ......  many of this
            &nb sp;       |         |          |
                    |         V          |  
                    |postgresql READ ONLY|
                    ----------------------
                              Λ
                       &nbs p;      |
                        restore_command
                              |
                   -----------------    
                   |  WAL archive  |  actually I have two of this. Only one is depicted for simlicity.
                   -----------------
                      Λ      &n bsp;      |
                      |          restore_command    
              archive_command         |
                        |             V
        --------------------       --------------------------
        |postgresql  MASTER|       |postgresql  WARM STANDBY|
        --------------------       --------------------------
        
I encounted a serious problem: if the MASTER crashes, and the WARM STANDBY takes over:

                    ----------------------    
                    |       Apache       |
                    |         |          |
                    |       read         |   ......&nbs p; many of this
                    |         |          |
                    |         V          |  
                    |postgresql READ ONLY|
                    ----------------------
                              Λ
                               |  
                        restore_command
                              |
                     -----------------    
                     |  WAL archive  |  
                     -----------------
                  ;                    Λ
                                     |
                                archive_command
                                       |
-------------------------------       -----------------------------------------
|postgresql former MASTER  x_x|       |postgresql  former WARM STANDBY   ̄�� ̄|
-------------------------------       -----------------------------------------
        
I noticed that the warm standby starts a new time line when it generate WAL archive in place of the former MASTER. BUT the read only ones do not know this change and insist on finding the next WAL file of the old time line.
So how do I notice the read only ones that they should switch to a new time line?
        
        

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: DELETE FROM pg_description WHERE ...
Next
From: Erwin Brandstetter
Date:
Subject: Re: DELETE FROM pg_description WHERE ...