Commit 29c625a
committed
yugabyte#4813 [YSQL] Suppress 'incomplete startup packet' log message
Summary:
Postgres logs each failed connection attempt
```
2019-11-28 13:24:26.501 UTC [15168] LOG: incomplete startup packet
```
Different monitoring tools may scans opened ports without sending any data.
Postgres log file will be flooded with above message in this case.
Solution is to avoid logging in case connection has no data.
Additional details can be found here: https://www.percona.com/blog/2019/12/03/postgresql-12-improvement-benign-log-entries-incomplete-startup-packet/
Vanilla postgres patch: https://git.postgresql.org/gitweb/?p=postgresql.git;a=patch;h=342cb650e
Test Plan:
Manual:
- start YB cluster with ysql enabled
- run simple port monitoring `for i in {1..100}; do nc -zv localhost 5433 ; done`
- check absence of `incomplete startup packet` log `cd ~/yugabyte-data && grep -e "incomplete startup packet" -R`
Reviewers: alex, neha
Reviewed By: neha
Subscribers: mihnea, mikhail, yql
Differential Revision: https://phabricator.dev.yugabyte.com/D87221 parent d5f208a commit 29c625a
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1940 | 1940 | | |
1941 | 1941 | | |
1942 | 1942 | | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
1943 | 1960 | | |
1944 | 1961 | | |
1945 | 1962 | | |
| |||
0 commit comments