Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a7a3c7d9
Unverified
Commit
a7a3c7d9
authored
May 01, 2019
by
Laurent Bernaille
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable graceful termination for udp
parent
801f4e70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
graceful_termination.go
pkg/proxy/ipvs/graceful_termination.go
+5
-5
No files found.
pkg/proxy/ipvs/graceful_termination.go
View file @
a7a3c7d9
...
...
@@ -17,10 +17,10 @@ limitations under the License.
package
ipvs
import
(
"fmt"
"sync"
"time"
"fmt"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/klog"
utilipvs
"k8s.io/kubernetes/pkg/util/ipvs"
...
...
@@ -164,10 +164,10 @@ func (m *GracefulTerminationManager) deleteRsFunc(rsToDelete *listItem) (bool, e
}
for
_
,
rs
:=
range
rss
{
if
rsToDelete
.
RealServer
.
Equal
(
rs
)
{
//
Delete RS with no connections
//
For UDP, ActiveConn is always 0
// For
TCP, InactiveConn are connections not in ESTABLISHED state
if
rs
.
ActiveConn
+
rs
.
InactiveConn
!=
0
{
//
For UDP traffic, no graceful termination, we immediately delete the RS
//
(existing connections will be deleted on the next packet because sysctlExpireNoDestConn=1)
// For
other protocols, don't delete until all connections have expired)
if
rs
ToDelete
.
VirtualServer
.
Protocol
!=
"udp"
&&
rs
.
ActiveConn
+
rs
.
InactiveConn
!=
0
{
klog
.
Infof
(
"Not deleting, RS %v: %v ActiveConn, %v InactiveConn"
,
rsToDelete
.
String
(),
rs
.
ActiveConn
,
rs
.
InactiveConn
)
return
false
,
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment