Skip to content

Commit

Permalink
add switch for compact (#133)
Browse files Browse the repository at this point in the history
* add switch for compact

* fix

* fix
  • Loading branch information
changluyi authored Oct 27, 2023
1 parent 41fec6e commit bb2a18f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/ops/faq.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,18 @@ This log indicates that the in-kernel OVS version is too low to support the corr

1. Upgrade the kernel module or compile the OVS kernel module manually.
2. If you are using an Overlay network you can change the `kube-ovn-controller` args, setting `--enable-lb=false` to disable the OVN LB to use kube-proxy for service forwarding.

## Frequent leader selection occurs in ovn-central

### Behavior

Starting from the v1.11.x version, in a cluster with 1w Pod or more, if OVN NB or SB frequently elects the master, the possible reason is that Kube-OVN periodically performs the ovsdb-server/compact action, which affects the master selection logic.

### Solution

You can configure the environment variables for ovn-central as follows and turn off compact:

```yaml
- name: ENABLE_COMPACT
value: "false"
```
15 changes: 15 additions & 0 deletions docs/ops/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,18 @@ openvswitch: netlink: Flow actions may not be safe on all matching packets.
1. 升级内核模块或手动编译 OVS 内核模块。
2. 若只使用 Overlay 网络可以更改 `kube-ovn-controller` 启动参数设置 `--enable-lb=false`
关闭 OVN LB 使用 kube-proxy 进行 Service 转发。

## ovn-central 出现频繁选主

### 现象

从 v1.11.x 版本开始,1w Pod 以上的集群,如果 OVN NB 或者 SB 出现频繁选主的情况,可能原因是 Kube-OVN 周期进行了 ovsdb-server/compact 动作,影响到选主逻辑。

### 解决方法

可以给 ovn-central 配置环境变量如下,关闭 compact:

```yaml
- name: ENABLE_COMPACT
value: "false"
```

0 comments on commit bb2a18f

Please sign in to comment.