[ovs-dev] [PATCH] ovsdb-server: Add limitation for ovsdb-server remotes
wangyunjian at huawei.com
Wed Jun 23 11:31:59 UTC 2021
> -----Original Message-----
> From: Ilya Maximets [mailto:i.maximets at ovn.org]
> Sent: Wednesday, May 12, 2021 9:03 PM
> To: wangyunjian <wangyunjian at huawei.com>; Ilya Maximets
> <i.maximets at ovn.org>; dev at openvswitch.org
> Cc: Lilijun (Jerry) <jerry.lilijun at huawei.com>; xudingke
> <xudingke at huawei.com>; chenchanghu <chenchanghu at huawei.com>
> Subject: Re: [ovs-dev] [PATCH] ovsdb-server: Add limitation for ovsdb-server
> On 1/11/21 2:27 PM, wangyunjian wrote:
> >> -----Original Message-----
> >> From: Ilya Maximets [mailto:i.maximets at ovn.org]
> >> Sent: Monday, January 11, 2021 8:40 PM
> >> To: wangyunjian <wangyunjian at huawei.com>; dev at openvswitch.org
> >> Cc: i.maximets at ovn.org; Lilijun (Jerry) <jerry.lilijun at huawei.com>;
> >> xudingke <xudingke at huawei.com>; chenchanghu
> <chenchanghu at huawei.com>
> >> Subject: Re: [ovs-dev] [PATCH] ovsdb-server: Add limitation for
> >> ovsdb-server remotes
> >> On 12/22/20 12:31 PM, wangyunjian wrote:
> >>> From: Yunjian Wang <wangyunjian at huawei.com>
> >>> Currently there is no limit to add ovsdb-server remotes, which will
> >>> cause all FDs maybe be consumed when we always call
> >>> ovsdb_server_add_remote() function. And as a result, other
> >>> connections cannot be created. To fix this issue, we can add
> >>> limitation for ovsdb-server remotes. It's limited to 64, witch is
> >>> just an empirical value.
> >> Hi. Why do you need so many remotes?
> >> And why not removing ones that you don't need?
> > This issue is caused by pressure tests. The remotes are continuously
> > created. The ovsdb-server service is abnormal and cannot be recovered.
> Thinking more about this, it makes some sense to limit number of remotes, but
> this patch only limits it in one place. Commonly, some database table is used
> as a source of remotes for an ovsdb process and this patch doesn't limit
> number of connections that could be added to these tables.
OK, I can fix them together, but I don't know the exact command for the some
database tables. Can you explain them in detail?
> Best regards, Ilya Maximets.
More information about the dev