Pod hpa would create extra pods during deployment rolling update.
See kubernetes/kubernetes#72775
- Amazon EKS, kubernetes version 1.14.6
❯ docker build . | |
Sending build context to Docker daemon 2.56kB | |
Step 1/15 : FROM ubuntu:18.04 | |
---> 4c108a37151f | |
Step 2/15 : ENV DEBIAN_FRONTEND=noninteractive | |
---> Using cache | |
---> ed488244a498 | |
Step 3/15 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev | |
---> Using cache | |
---> 2c4b7bc6eff3 |
❯ docker build . | |
Sending build context to Docker daemon 2.56kB | |
Step 1/15 : FROM ubuntu:18.04 | |
---> 4c108a37151f | |
Step 2/15 : ENV DEBIAN_FRONTEND=noninteractive | |
---> Using cache | |
---> ed488244a498 | |
Step 3/15 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev | |
---> Using cache | |
---> 2c4b7bc6eff3 |
❯ docker build . | |
Sending build context to Docker daemon 2.56kB | |
Step 1/14 : FROM ubuntu:18.04 | |
---> 4c108a37151f | |
Step 2/14 : ENV DEBIAN_FRONTEND=noninteractive | |
---> Running in 643592b1f454 | |
Removing intermediate container 643592b1f454 | |
---> ed488244a498 | |
Step 3/14 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev | |
---> Running in 629c54792466 |
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"time" |
diff --git a/internal/pool/conn.go b/internal/pool/conn.go | |
index e9a2585..c74242c 100644 | |
--- a/internal/pool/conn.go | |
+++ b/internal/pool/conn.go | |
@@ -58,6 +58,16 @@ func (cn *Conn) RemoteAddr() net.Addr { | |
} | |
func (cn *Conn) WithReader(ctx context.Context, timeout time.Duration, fn func(rd *proto.Reader) error) error { | |
+ stopWatcher := make(chan struct{}) | |
+ defer close(stopWatcher) |
Pod hpa would create extra pods during deployment rolling update.
See kubernetes/kubernetes#72775
if we apply adjust how to check modules are installed or not, then
with perl 5.8.5
❯ perl -Ilib cpm.test install File::Spec
WARN You don't have Module::CoreList. The local-lib may result in incomplete self-contained directory.
DONE install Perl-OSType-1.010
DONE install Locale-Maketext-Simple-0.21
DONE install version-0.9924
FAIL install ExtUtils-CBuilder-0.280231
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" | |
"sync" |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use HTTP::Daemon; | |
use IO::Socket::IP; | |
use LWP::UserAgent; | |
use Net::HTTP; | |
use Socket (); |