Skip to content

Commit

Permalink
Merge pull request #106 from bgokden/develop
Browse files Browse the repository at this point in the history
Remove old peer
  • Loading branch information
bgokden authored May 5, 2023
2 parents 9d6f326 + 9ca70fd commit a32fdc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxUnavailable: 10%
maxSurge: 1
selector:
matchLabels:
Expand All @@ -56,7 +56,7 @@ spec:
spec:
containers:
- name: veri
image: berkgokden/veri:v0.0.100
image: berkgokden/veri:v0.0.103
args: ["serve", "--services=veriservice:10000"]
imagePullPolicy: IfNotPresent
ports:
Expand Down Expand Up @@ -94,11 +94,11 @@ spec:
fieldPath: status.podIP
resources:
requests:
memory: "64Mi"
cpu: "250m"
memory: "128Mi"
cpu: "512m"
limits:
memory: "512Mi"
cpu: "500m"
cpu: "1000m"
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
Expand Down
6 changes: 3 additions & 3 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ func (n *Node) SyncWithPeers() {
for _, item := range peerList {
peer := item.Object.(*pb.Peer)
// Delete by timeout
// if !n.CheckPeer(peer) { // remove old peer
// continue
// }
if !n.CheckPeer(peer) { // remove old peer
continue
}
idOfPeer := n.GetDifferentAddressOf(peer)
if idOfPeer == "" {
continue
Expand Down

0 comments on commit a32fdc3

Please sign in to comment.