Skip to content

Instantly share code, notes, and snippets.

@voxmaster
Created September 11, 2020 16:26
Show Gist options
  • Save voxmaster/196479cca8c894792f1fe52728c03af0 to your computer and use it in GitHub Desktop.
Save voxmaster/196479cca8c894792f1fe52728c03af0 to your computer and use it in GitHub Desktop.
###########################
###~~~ CONTAINER LOG ~~~###
###########################
<<<< kubectl scale sts cache-statefulset --replicas=1 >>>>
I0911 15:46:01.851880 1 main.go:31] running kube-httpcache with following options: {Kubernetes:{Config: RetryBackoffString:30s RetryBackoff:30s} Frontend:{Address:0.0.0.0 Port:80 Watch:true Namespace:magento Service:cache-service PortName:http} Backend:{Watch:false Namespace:magento Service:magento Port: PortName:http} Signaller:{Enable:true Address:0.0.0.0 Port:8090 WorkersCount:1 MaxRetries:5 RetryBackoffString:30s RetryBackoff:30s} Admin:{Address:0.0.0.0 Port:6083} Varnish:{SecretFile:/etc/varnish/k8s-secret/secret Storage:malloc,128M AdditionalParameters: VCLTemplate:/etc/varnish/tmpl/default.vcl.tmpl VCLTemplatePoll:false} Readiness:{Enable:true Address:0.0.0.0:9102}}
I0911 15:46:01.852475 1 main.go:38] using in-cluster configuration
I0911 15:46:01.855877 1 run.go:15] waiting for initial configuration before starting Varnish
W0911 15:46:01.871197 1 endpoints_watch.go:50] service 'cache-service' has no endpoints
I0911 15:46:02.062405 1 run.go:35] creating initial VCL config
I0911 15:46:02.062959 1 wait.go:12] probing admin port until it is available
Debug: Version: varnish-6.0.6 revision 29a1a8243dbef3d973aec28dc90403188c1dc8e7
Debug: Platform: Linux,4.14.138+,x86_64,-junix,-smalloc,-sdefault,-hcritbit
Debug: Child (26) Started
Info: Child (26) said Child starts
I0911 15:46:05.063784 1 dial.go:41] authentication required. challenge string: "xpzgogcgikhzbhzticwoddpzqngfoevy"
I0911 15:46:05.063812 1 wait.go:23] admin port is available
<<<< kubectl scale sts cache-statefulset --replicas=2 >>>>
I0911 15:46:41.614646 1 endpoints_watch.go:58] endpoints did not change
I0911 15:46:43.672375 1 watch.go:35] received new frontend configuration: &{Endpoints:[{Name:cache-statefulset-1 Host:10.88.0.67 Port:80 Probe:<nil>} {Name:cache-statefulset-0 Host:10.88.3.3 Port:80 Probe:<nil>}] Primary:0xc0001b82c0}
I0911 15:46:43.674807 1 dial.go:41] authentication required. challenge string: "ehtdksomrajylvgnmafkcctsoaigytgb"
<<<< kubectl scale sts cache-statefulset --replicas=3 >>>>
I0911 15:47:15.571982 1 endpoints_watch.go:58] endpoints did not change
I0911 15:47:17.904790 1 watch.go:35] received new frontend configuration: &{Endpoints:[{Name:cache-statefulset-1 Host:10.88.0.67 Port:80 Probe:<nil>} {Name:cache-statefulset-2 Host:10.88.1.111 Port:80 Probe:<nil>} {Name:cache-statefulset-0 Host:10.88.3.3 Port:80 Probe:<nil>}] Primary:0xc0001b82c0}
I0911 15:47:17.911722 1 dial.go:41] authentication required. challenge string: "zbfmdywclghzwenstyvcimicafwcskqg"
<<<< kubectl scale sts cache-statefulset --replicas=3 >>>>
I0911 15:48:21.878652 1 endpoints_watch.go:58] endpoints did not change
I0911 15:48:24.315121 1 watch.go:35] received new frontend configuration: &{Endpoints:[{Name:cache-statefulset-1 Host:10.88.0.67 Port:80 Probe:<nil>} {Name:cache-statefulset-3 Host:10.88.0.68 Port:80 Probe:<nil>} {Name:cache-statefulset-2 Host:10.88.1.111 Port:80 Probe:<nil>} {Name:cache-statefulset-0 Host:10.88.3.3 Port:80 Probe:<nil>}] Primary:0xc0001b82c0}
I0911 15:48:24.321984 1 dial.go:41] authentication required. challenge string: "ziexfghhrhgdbmvliqqaakpridsyfxpm"
###############################################
###~~~ VARNISH LOG | cache-statefulset-0 ~~~###
###############################################
* << BeReq >> 32793
- Begin bereq 32792 pass
- VCL_use k8s-upstreamcfg-3
- Timestamp Start: 1599840064.900036 0.000000 0.000000
- BereqMethod PURGE
- BereqURL /
- BereqProtocol HTTP/1.1
- BereqHeader X-Magento-Tags-Pattern: .*
- BereqHeader Host: cache-service
- BereqHeader X-Forwarded-For: 10.88.6.47
- BereqHeader x-shard: cache-statefulset-2
- BereqHeader X-Varnish: 32793
- VCL_call BACKEND_FETCH
- VCL_return fetch
- BackendOpen 22 k8s-upstreamcfg-3.cache-statefulset-2 10.88.1.111 80 10.88.3.3 47468
- BackendStart 10.88.1.111 80
- Timestamp Bereq: 1599840064.901534 0.001498 0.001498
- Timestamp Beresp: 1599840064.902037 0.002001 0.000503
- BerespProtocol HTTP/1.1
- BerespStatus 200
- BerespReason Purged
- BerespHeader Date: Fri, 11 Sep 2020 16:01:04 GMT
- BerespHeader Server: Varnish
- BerespHeader X-Varnish: 32796
- BerespHeader Content-Type: text/html; charset=utf-8
- BerespHeader Retry-After: 5
- BerespHeader Content-Length: 240
- BerespHeader Accept-Ranges: bytes
- BerespHeader Connection: keep-alive
- VCL_call BACKEND_RESPONSE
- TTL VCL -1 259200 0 1599840065 uncacheable
- TTL VCL 120 259200 0 1599840065 uncacheable
- TTL VCL 120 259200 0 1599840065 uncacheable
- VCL_return deliver
- BerespUnset Content-Length: 240
- BerespHeader Content-Encoding: gzip
- BerespHeader Vary: Accept-Encoding
- Storage malloc Transient
- Fetch_Body 3 length -
- Gzip G F E 240 182 80 1376 1386
- BackendReuse 22 k8s-upstreamcfg-3.cache-statefulset-2
- Timestamp BerespBody: 1599840064.902345 0.002310 0.000308
- Length 182
- BereqAcct 146 0 146 218 0 218
- End
* << Request >> 32792
- Begin req 32791 rxreq
- Timestamp Start: 1599840064.899948 0.000000 0.000000
- Timestamp Req: 1599840064.899948 0.000000 0.000000
- ReqStart 10.88.6.47 42062 a0
- ReqMethod PURGE
- ReqURL /
- ReqProtocol HTTP/1.1
- ReqHeader X-Magento-Tags-Pattern: .*
- ReqHeader Host: cache-service
- ReqHeader X-Forwarded-For: 10.88.6.47
- VCL_call RECV
- ReqHeader x-shard: cache-statefulset-2
- VCL_return pass
- VCL_call HASH
- VCL_return lookup
- VCL_call PASS
- VCL_return fetch
- Link bereq 32793 pass
- Timestamp Fetch: 1599840064.902394 0.002446 0.002446
- RespProtocol HTTP/1.1
- RespStatus 200
- RespReason Purged
- RespHeader Date: Fri, 11 Sep 2020 16:01:04 GMT
- RespHeader Server: Varnish
- RespHeader X-Varnish: 32796
- RespHeader Content-Type: text/html; charset=utf-8
- RespHeader Retry-After: 5
- RespHeader Accept-Ranges: bytes
- RespHeader Content-Encoding: gzip
- RespHeader Vary: Accept-Encoding
- RespHeader X-Varnish: 32792
- RespHeader Age: 0
- RespHeader Via: 1.1 varnish (Varnish/6.0)
- VCL_call DELIVER
- RespUnset Age: 0
- RespHeader Pragma: no-cache
- RespHeader Expires: -1
- RespHeader Cache-Control: no-store, no-cache, must-revalidate, max-age=0
- RespUnset Server: Varnish
- VCL_return deliver
- Timestamp Process: 1599840064.902419 0.002471 0.000026
- RespUnset Content-Encoding: gzip
- RespHeader Content-Length: 240
- RespHeader Connection: keep-alive
- Gzip U D - 182 240 80 1376 1386
- Timestamp Resp: 1599840064.902524 0.002576 0.000105
- ReqAcct 69 0 69 368 240 608
- End
* << Session >> 32791
- Begin sess 0 HTTP/1
- SessOpen 10.88.6.47 42062 a0 10.88.3.3 80 1599840064.899896 20
- Link req 32792 rxreq
- SessClose REM_CLOSE 0.006
- End
###############################################
###~~~ VARNISH LOG | cache-statefulset-2 ~~~###
###############################################
* << Request >> 32796
- Begin req 32795 rxreq
- Timestamp Start: 1599840064.901572 0.000000 0.000000
- Timestamp Req: 1599840064.901572 0.000000 0.000000
- ReqStart 10.88.3.3 47468 a0
- ReqMethod PURGE
- ReqURL /
- ReqProtocol HTTP/1.1
- ReqHeader X-Magento-Tags-Pattern: .*
- ReqHeader Host: cache-service
- ReqHeader X-Forwarded-For: 10.88.6.47
- ReqHeader x-shard: cache-statefulset-2
- ReqHeader X-Varnish: 32793
- ReqUnset X-Forwarded-For: 10.88.6.47
- ReqHeader X-Forwarded-For: 10.88.6.47, 10.88.3.3
- VCL_call RECV
- ReqUnset x-shard: cache-statefulset-2
- ReqHeader x-shard: cache-statefulset-2
- ReqUnset X-Forwarded-For: 10.88.6.47, 10.88.3.3
- ReqHeader X-Forwarded-For: 10.88.3.3
- VCL_acl MATCH purge "10.88.3.3"
- VCL_return purge
- VCL_call HASH
- VCL_return lookup
- VCL_call PURGE
- VCL_return synth
- Timestamp Process: 1599840064.901720 0.000148 0.000148
- RespHeader Date: Fri, 11 Sep 2020 16:01:04 GMT
- RespHeader Server: Varnish
- RespHeader X-Varnish: 32796
- RespProtocol HTTP/1.1
- RespStatus 200
- RespReason OK
- RespReason Purged
- VCL_call SYNTH
- RespHeader Content-Type: text/html; charset=utf-8
- RespHeader Retry-After: 5
- VCL_return deliver
- RespHeader Content-Length: 240
- Storage malloc Transient
- RespHeader Accept-Ranges: bytes
- RespHeader Connection: keep-alive
- Timestamp Resp: 1599840064.901824 0.000252 0.000104
- ReqAcct 146 0 146 218 240 458
- End
* << Session >> 32795
- Begin sess 0 HTTP/1
- SessOpen 10.88.3.3 47468 a0 10.88.1.111 80 1599840064.901386 20
- Link req 32796 rxreq
- SessClose RX_TIMEOUT 5.052
- End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment