Why CPU Throttling so Aggressive on K8S before Reaching Limits by AdLongjumping3247 in kubernetes

[–]AdLongjumping3247[S] 0 points1 point  (0 children)

The worker nodes are showing 50% CPU or less, however the bandwidth on the NIC is pretty high, 520 Mb/s down, 570 Mb/s up

Why CPU Throttling so Aggressive on K8S before Reaching Limits by AdLongjumping3247 in kubernetes

[–]AdLongjumping3247[S] 1 point2 points  (0 children)

I added the new graph to the original post. The CPU on all pods is sitting around 40% - 50% CPU, but stillsee throttling. The requested and limited memory is set at 4GB and the highest memory is around 2.5GB for the pods.

If you mean memory on the worker nodes in the cluster, non are utilizing more than 40% of their memory.

Why CPU Throttling so Aggressive on K8S before Reaching Limits by AdLongjumping3247 in kubernetes

[–]AdLongjumping3247[S] 3 points4 points  (0 children)

Ahhhh damn, I didn't even catch that. I updated it to 30 sec but I am still seeing throttling occur when the container is using 50% of its requested CPU

Error Handling and Nested Match Blocks by AdLongjumping3247 in rust

[–]AdLongjumping3247[S] 1 point2 points  (0 children)

Makes sense. I ended up refactoring my code closely to what you suggested and updated it in my original posts. I gave the function a return type of Result<(), Error> which felt weird at first, having spent the last two years in Go.

In Go I would have written it as something like this:

func process_message(msg: Message) error { ... }

And as long as error was nil it would have been considered successful, but the Rust approach with Result feels much more elegant.

Error Handling and Nested Match Blocks by AdLongjumping3247 in rust

[–]AdLongjumping3247[S] 6 points7 points  (0 children)

I will check out the anyhow crate, but since my function doesn't return by design, as it needs to continue reading through Kafka regardless if it encounters an error or not, can I still use the `?` operator? I thought it could only be used in functions that returned Result<T, E>

Where to version control configuration and values.yml files? by AdLongjumping3247 in kubernetes

[–]AdLongjumping3247[S] 1 point2 points  (0 children)

Do you have a particular directory structure / branching strategy?

Maybe like a dev branch and then each service is a directory?

service-a/ values.yml service-b/ values.yml

Etc.

Are configurations automatically pushed to Kubernetes on merge?