sergey-safarov commented on issue #4668:
URL: https://github.com/apache/couchdb/issues/4668#issuecomment-1628643750
on the server I have created file `/opt/couchdb/etc/local.d/replicator.ini`
with content
```
[replicator]
; See the `inet` Erlang module's man page for the full list of options.
socket_options = [{keepalive, true}, {nodelay, false}, {prefer_ipv6, true}]
; Valid socket options. Options not in this list are ignored. The full list
of
; options may be found at https://www.erlang.org/doc/man/inet.html#setopts-2.
valid_socket_options =
buffer,keepalive,nodelay,priority,recbuf,sndbuf,prefer_ipv6
```
Then I mounted this file into the docker container. The CouchDB container
started with this file mounted.
```bash
[root@ippbx-1b ~]# docker exec couch ls -l
/opt/couchdb/etc/local.d/replicator.ini
-rw-r--r--. 1 couchdb couchdb 403 Jul 10 09:53
/opt/couchdb/etc/local.d/replicator.ini
```
Started replications again and using tcpdump can see `A` DNS requests
```
10:00:49.900494 IP 127.0.0.1.42238 > 127.0.0.1.domain: 44128+ A?
ippbx-1a.la.nga911.com. (40)
10:00:49.900627 IP 127.0.0.1.domain > 127.0.0.1.42238: 44128* 0/1/0 (140)
10:00:49.900711 IP 127.0.0.1.52185 > 127.0.0.1.domain: 8288+ A?
ippbx-1a.la.nga911.com. (40)
10:00:49.900828 IP 127.0.0.1.domain > 127.0.0.1.52185: 8288* 0/1/0 (140)
```
I also have checked local node config after CouchDB restart. I see
`replicator` settings applied as expected.
```
[root@ippbx-1b ~]# curl -s -S
http://xxxxx:[email protected]:5984/_node/_local/_config | jq
{
"chttpd": {
"bind_address": "::",
"port": "5984"
},
"admins": {
"xxxxxx": "xxxxxxxxxxx"
},
"vendor": {
"name": "The Apache Software Foundation"
},
"feature_flags": {
"partitioned||*": "true"
},
"chttpd_auth": {
"hash_algorithms": "sha256, sha"
},
"replicator": {
"socket_options": "[{keepalive, true}, {nodelay, false}, {prefer_ipv6,
true}]",
"valid_socket_options":
"buffer,keepalive,nodelay,priority,recbuf,sndbuf,prefer_ipv6"
},
"log": {
"level": "error"
},
"indexers": {
"couch_mrview": "true"
},
"prometheus": {
"additional_port": "false",
"bind_address": "127.0.0.1",
"port": "17986"
},
"httpd": {
"bind_address": "::",
"port": "5986"
},
"smoosh": {
"state_dir": "./data"
},
"couch_httpd_auth": {
"authentication_db": "_users",
"secret": "c8bf8a8d517074d779a1a31a9dac75bd"
},
"couchdb_engines": {
"couch": "couch_bt_engine"
},
"couchdb": {
"database_dir": "./data",
"uuid": "065b865d8615b590a225292060d6c415",
"view_index_dir": "./data"
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]