Hi all! My server is in degraded mode, and I follo...
# support
b
Hi all! My server is in degraded mode, and I followed the instructions here: https://www.rudderstack.com/docs/user-guides/administrators-guide/admin-troubleshooting-guide/#rudderstack-has-entered-t[…]ded-mode-what-should-i-do but still no luck… anything else I can do to get it resolved? Does it take considerable time to pickup the config of
recovery_data.json
?
In the data-plane logs I see
ERROR	write udp 127.0.0.1:39091->127.0.0.1:8125: write: connection refused
We just upgraded to the latest version, we also tried editing the file, removing it, restarting, not restarting, all the options… what should we do next?
This is out current health:
Copy code
{
  "appType": "EMBEDDED",
  "server": "UP",
  "db": "UP",
  "acceptingEvents": "TRUE",
  "routingEvents": "FALSE",
  "mode": "DEGRADED",
  "goroutines": "305",
  "backendConfigMode": "API",
  "lastSync": "2022-12-16T06:19:50Z",
  "lastRegulationSync": ""
}
All the services look healthy (data plane, transformer, postgres)
Now updated to this:
Copy code
{
  "appType": "EMBEDDED",
  "server": "UP",
  "db": "UP",
  "acceptingEvents": "TRUE",
  "routingEvents": "TRUE",
  "mode": "NORMAL",
  "backendConfigMode": "API",
  "lastSync": "2022-12-16T14:24:47Z",
  "lastRegulationSync": ""
}
But still no messages being produced…
Now we see data flowing, but a lot of memory consumption with this setup:
Copy code
rudderstack-backend:
    Container ID:  containerd://cae8b224bafa851dce45d6fa58063077764e1c01d97efa535673211a2e634d0f
    Image:         rudderlabs/rudder-server:latest
    Image ID:      docker.io/rudderlabs/rudder-server@sha256:c94b955b19b58a51098c0e22788ab69c871dc05c86dfc2736911e7c1d0829b4b
    Port:          8080/TCP
    Host Port:     0/TCP
    Command:
      /docker-entrypoint.sh
    Args:
      /bin/sh
      -c
      /wait-for $JOBS_DB_HOST:$(JOBS_DB_PORT) -- /rudder-server
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       OOMKilled
      Exit Code:    137
      Started:      Fri, 16 Dec 2022 17:05:27 +0100
      Finished:     Fri, 16 Dec 2022 17:07:50 +0100
    Ready:          False
    Restart Count:  4
    Limits:
      memory:  8Gi
    Requests:
      memory:   4Gi
    Liveness:   http-get http://:8080/health delay=120s timeout=1s period=10s #success=1 #failure=3
    Readiness:  http-get http://:8080/health delay=0s timeout=1s period=10s #success=1 #failure=3
We tried the instructions here but still no good
h
Hey @blue-activity-91609 Can you help me with this • Do you have an estimate on the number of events you receive and the size of each event? • Can you also let me know if the server is normal right now?
b
Update here: After standing up a parallel deployment, we got the server back to normal mode, but we saw one of the replicas for the data-plane crash looping since then. For the time when the server was in degraded mode, we received some events, but the volume is noticeably lower than normal. In the DB I see a lot of pending jobs, so I’m trying to find a way to push them
h
Also how is your data plane setup? If it is in kubernetes can you share all the pods which are running?
b
@helpful-island-54641 Hi! Thanks for the reply! • About 100k events per hour for the main app (the others add more but less volume). I’m trying to find the average size, but not really that much… • The server is back to normal mode now • What kind of details do you need from the data plane? It is in Kubernetes, these are the running pods currently:
h
This looks good… Can you tell me how is the data being routed to both 0 and 1? Is it by the default Kubernetes service?
Also can you let me know what are the destinations you are using majorly?
b
Correct! The main destinations are Pub/Sub and Vertica DB
One important thing that I’m not sure I mentioned is that all this started happening after forced restart of the deployment caused by maintenance in one of the GCP nodes overnight
h
Got it…. This probably is mostly because of the backlog of accumulated events during the node downtime Can you set this env... This will reduce the memory consumption on your server pod
Copy code
RSERVER_PROCESSOR_MAX_LOOP_PROCESS_EVENTS = 2000
b
Sure! Trying now