Closed gaktive closed 1 year ago
Component | Version / Type |
---|---|
Rancher version | v2.6.10 |
Installation option | Docker |
Cert Details | --acme-domain |
Docker version | 20.10.7, build f0df350 |
Helm version | v2.16.8-rancher2 |
Downstream cluster type | not applicable |
Downstream K8s version | not applicable |
Authentication providers enabled | OpenLDAP |
Logged in user role | administrator, standard user |
Browser type | google chrome |
Browser version | 110.0.5481.77 (x86_64) |
/dashboard/home
hamburger menu
>>> local
>>> Kubectl Shell
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
workload.user.cattle.io/workloadselector: apps.deployment-default-test-logs
name: test-logs
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: apps.deployment-default-test-logs
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
workload.user.cattle.io/workloadselector: apps.deployment-default-test-logs
spec:
affinity: {}
containers:
- args:
- 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep .001; done'
command:
- /bin/sh
- -c
image: busybox
imagePullPolicy: Always
name: fast
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done'
command:
- /bin/sh
- -c
image: busybox
imagePullPolicy: Always
name: slower
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 10; done'
command:
- /bin/sh
- -c
image: busybox
imagePullPolicy: Always
name: sloooow
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
Kubectl Shell
and run it:vim deploy.yml
# paste above yaml into file and exit vim
kubectl apply -f deploy.yml
local
>>> Workload
>>> Deployments
>>> test-logs
test-logs
deployment, click the ellipsis (three dots)
>>> click View Logs
inspect
>>> ellipsis (three dots)
in chrome >>> More tools
>>> Performance monitor
For the Rancher UI to continue running without any issues
The UI became unusable after ~3 minutes.
Metric | value |
---|---|
JS heap size | 1531 MB |
DOM Nodes | 620,915 |
Component | Version / Type |
---|---|
Rancher version | v2.6-f4cadcbdb940aede35f038c3168805762a653d4c-head |
Installation option | Docker |
Cert Details | --acme-domain |
Docker version | 20.10.7, build f0df350 |
Helm version | v2.16.8-rancher2 |
Downstream cluster type | not applicable |
Downstream K8s version | not applicable |
Authentication providers enabled | OpenLDAP |
Logged in user role | administrator, standard user |
Browser type | google chrome |
Browser version | 110.0.5481.77 (x86_64) |
/dashboard/home
hamburger menu
>>> local
>>> Kubectl Shell
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
workload.user.cattle.io/workloadselector: apps.deployment-default-test-logs
name: test-logs
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: apps.deployment-default-test-logs
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
workload.user.cattle.io/workloadselector: apps.deployment-default-test-logs
spec:
affinity: {}
containers:
- args:
- 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep .001; done'
command:
- /bin/sh
- -c
image: busybox
imagePullPolicy: Always
name: fast
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done'
command:
- /bin/sh
- -c
image: busybox
imagePullPolicy: Always
name: slower
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 10; done'
command:
- /bin/sh
- -c
image: busybox
imagePullPolicy: Always
name: sloooow
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
Kubectl Shell
and run it:vim deploy.yml
# paste above yaml into file and exit vim
kubectl apply -f deploy.yml
local
>>> Workload
>>> Deployments
>>> test-logs
test-logs
deployment, click the ellipsis (three dots)
>>> click View Logs
inspect
>>> ellipsis (three dots)
in chrome >>> More tools
>>> Performance monitor
For the Rancher UI to continue running without any issues
No issues with Rancher after ~3 mins and drastically lower metrics
Metric | value |
---|---|
JS heap size | 167 MB |
DOM Nodes | 7.634 |
2.7.x related work: https://github.com/rancher/dashboard/issues/7156 2.7.x PR: https://github.com/rancher/dashboard/pull/7511
Context
Internal reference: SURE-5383 Reported in Rancher 2.6.8.
When troubleshooting an issue involving websockets, I did get a report that was adjacent to it. When using the Vue UI to tail log files, the browser stops responding.
Workaround: Restart browser tab every few minutes, or sometimes before one minute.