MitchDrage commented on code in PR #14841: URL: https://github.com/apache/cloudstack/pull/14841#discussion_r4687962324
########## server/src/main/java/org/apache/cloudstack/network/bgp/TenantBgpConfig.java: ########## @@ -0,0 +1,36 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +package org.apache.cloudstack.network.bgp; + +import org.apache.cloudstack.framework.config.ConfigKey; + +/** + * Settings for BGP sessions on virtual routers. + */ +public final class TenantBgpConfig { + + public static final ConfigKey<Integer> MinHoldtime = new ConfigKey<>(ConfigKey.CATEGORY_NETWORK, Integer.class, + "vpc.gateway.bgp.min.holdtime", + "3", Review Comment: 3 only stops a peer from negotiating hold time 0, which switches failure detection off. It doesn't set the hold time itself: each session still negotiates the lower of the two proposals, and per-peer timers come in the next PR. The setting is in this PR to keep that next one smaller. I didn't go higher because FRR applies the setting to the whole router, so e.g. 9 would drop existing operator upstream sessions that already run fast timers on their side. An operator can raise it, as long as it stays at or below their upstream hold time. I tested it on 8.4.4: at 3, peers at 1/3 and 10/30 came up with hold time 3 and 30, and a peer asking for 0 was refused with Unacceptable Hold Time. I also load tested 4 peers at 3/9 with BFD at 300 ms on a 1-CPU router, with no dropped sessions up to 1,000 routes per peer, so I don't see a capacity issue at those timers. -- 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]
