Hello,
my app sometimes complains about not being able to connect to the database. Sometimes that happens for several minutes. Sometimes just for a moment. Now I was finally able to check logs when that was happening:
2021-10-03T09:09:41.265270079Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:41.264Z INFO cmd/keeper.go:1505 our db requested role is master
2021-10-03T09:09:41.265942145Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:41.265Z INFO cmd/keeper.go:1543 already master
2021-10-03T09:09:41.281351552Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:41.281Z INFO cmd/keeper.go:1676 postgres parameters not changed
2021-10-03T09:09:41.281509352Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:41.281Z INFO cmd/keeper.go:1703 postgres hba entries not changed
2021-10-03T09:09:42.180254311Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:09:42.179Z INFO cmd/proxy.go:286 proxying to master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
2021-10-03T09:09:42.841680568Z app[452e7fe8] fra [info] sentinel | 2021-10-03T09:09:42.841Z WARN cmd/sentinel.go:276 no keeper info available {"db": "961135c1", "keeper": "66024582"}
2021-10-03T09:09:46.418738243Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:46.418Z INFO cmd/keeper.go:1505 our db requested role is master
2021-10-03T09:09:46.419636788Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:46.419Z INFO cmd/keeper.go:1543 already master
2021-10-03T09:09:46.436718075Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:46.436Z INFO cmd/keeper.go:1676 postgres parameters not changed
2021-10-03T09:09:46.436913844Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:46.436Z INFO cmd/keeper.go:1703 postgres hba entries not changed
2021-10-03T09:09:47.540306494Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:09:47.539Z INFO cmd/proxy.go:268 master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
2021-10-03T09:09:50.288729983Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:09:50.288Z INFO cmd/proxy.go:286 proxying to master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
2021-10-03T09:09:51.051800039Z app[452e7fe8] fra [info] sentinel | 2021-10-03T09:09:51.051Z WARN cmd/sentinel.go:276 no keeper info available {"db": "961135c1", "keeper": "66024582"}
2021-10-03T09:09:51.576782814Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:51.576Z INFO cmd/keeper.go:1543 already master
2021-10-03T09:09:51.597182051Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:51.596Z INFO cmd/keeper.go:1676 postgres parameters not changed
2021-10-03T09:09:51.597394720Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:51.597Z INFO cmd/keeper.go:1703 postgres hba entries not changed
2021-10-03T09:09:56.787866459Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:56.787Z INFO cmd/keeper.go:1505 our db requested role is master
2021-10-03T09:09:56.789484909Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:56.789Z INFO cmd/keeper.go:1543 already master
2021-10-03T09:09:56.810319764Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:56.810Z INFO cmd/keeper.go:1676 postgres parameters not changed
2021-10-03T09:09:56.810576553Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:09:56.810Z INFO cmd/keeper.go:1703 postgres hba entries not changed
2021-10-03T09:10:01.955190630Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:01.954Z INFO cmd/keeper.go:1505 our db requested role is master
2021-10-03T09:10:01.956007235Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:01.955Z INFO cmd/keeper.go:1543 already master
2021-10-03T09:10:01.972511096Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:01.972Z INFO cmd/keeper.go:1676 postgres parameters not changed
2021-10-03T09:10:01.972692625Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:01.972Z INFO cmd/keeper.go:1703 postgres hba entries not changed
2021-10-03T09:10:05.298001322Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:05.289Z INFO cmd/proxy.go:304 check timeout timer fired
2021-10-03T09:10:05.298039262Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:05.289Z INFO cmd/proxy.go:158 Stopping listening
2021-10-03T09:10:07.016862852Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:07.016Z INFO cmd/proxy.go:124 Starting proxying
2021-10-03T09:10:07.018774611Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:07.018Z INFO cmd/proxy.go:268 master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
2021-10-03T09:10:07.119153572Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:07.118Z INFO cmd/keeper.go:1505 our db requested role is master
2021-10-03T09:10:07.119892608Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:07.119Z INFO cmd/keeper.go:1543 already master
2021-10-03T09:10:07.142549712Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:07.142Z INFO cmd/keeper.go:1676 postgres parameters not changed
2021-10-03T09:10:07.142831290Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:07.142Z INFO cmd/keeper.go:1703 postgres hba entries not changed
2021-10-03T09:10:07.314614106Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:07.314Z INFO cmd/proxy.go:286 proxying to master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
2021-10-03T09:10:08.639333862Z app[452e7fe8] fra [info] keeper | 2021-10-03 09:10:08.637 UTC [992] LOG: PID 22688 in cancel request did not match any process
2021-10-03T09:10:09.300942056Z app[452e7fe8] fra [info] sentinel | 2021-10-03T09:10:09.300Z WARN cmd/sentinel.go:276 no keeper info available {"db": "961135c1", "keeper": "66024582"}
2021-10-03T09:10:12.289505408Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:12.289Z INFO cmd/keeper.go:1505 our db requested role is master
2021-10-03T09:10:12.290365683Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:12.290Z INFO cmd/keeper.go:1543 already master
2021-10-03T09:10:12.308999052Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:12.308Z INFO cmd/keeper.go:1676 postgres parameters not changed
2021-10-03T09:10:12.309609178Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:12.309Z INFO cmd/keeper.go:1703 postgres hba entries not changed
2021-10-03T09:10:12.414531993Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:12.414Z INFO cmd/proxy.go:268 master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
2021-10-03T09:10:12.711157265Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:12.710Z INFO cmd/proxy.go:286 proxying to master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
2021-10-03T09:10:15.789068151Z app[452e7fe8] fra [info] sentinel | 2021-10-03T09:10:15.788Z WARN cmd/sentinel.go:276 no keeper info available {"db": "961135c1", "keeper": "66024582"}
2021-10-03T09:10:17.447023992Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:17.446Z INFO cmd/keeper.go:1505 our db requested role is master
2021-10-03T09:10:17.465355902Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:17.465Z INFO cmd/keeper.go:1676 postgres parameters not changed
2021-10-03T09:10:17.465601141Z app[452e7fe8] fra [info] keeper | 2021-10-03T09:10:17.465Z INFO cmd/keeper.go:1703 postgres hba entries not changed
2021-10-03T09:10:17.817395117Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:17.817Z INFO cmd/proxy.go:268 master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
2021-10-03T09:10:18.536937955Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:18.536Z INFO cmd/proxy.go:286 proxying to master address {"address": "[fdaa:0:2d8e:a7b:67:0:2457:2]:5433"}
This look suspicious for me:
2021-10-03T09:10:05.298001322Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:05.289Z INFO cmd/proxy.go:304 check timeout timer fired
2021-10-03T09:10:05.298039262Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:05.289Z INFO cmd/proxy.go:158 Stopping listening
2021-10-03T09:10:07.016862852Z app[452e7fe8] fra [info] proxy | 2021-10-03T09:10:07.016Z INFO cmd/proxy.go:124 Starting proxying
Any idea, what’s happening here?