• Golang: Managing the Garbage Collector settings

    3 min read

    golang garbage collection gc settings gogc gomemlimit

    In Golang, there are two environment variables that can be used to manage the Garbage Collector in Go: GOGC and GOMEMLIMIT. With these variables, you can control how often the garbage collector runs and set an overall memory limit that the Go runtime can use.

    05/11/2024

    Read more...
  • What's a kubernetes StatefulSet?

    3 min read

    kubernetes StatefulSet

    When we need to have a stateful application running on Kubernetes, we might need to use a StatefulSet. With a StatefulSet, we can manage stateful applications where each pod needs a stable, unique network identity and storage that persists across pod rescheduling. Unlike Deployments, which focus on maintaining a specified number of replicas, StatefulSets ensure each pod is given a unique ordinal index and retains the same identity throughout its lifecycle. If a pod is deleted or a node fails, the replacement pod will maintain the same identity and storage.

    04/11/2024

    Read more...
  • Argo Workflows: Using the exit handler

    2 min read

    argo workflows kubernetes exit handler template

    An exit handler is a template that always executes at the end of a workflow (regardless of whether it completed successfully or returned an error). You can use this run any action, for example: to send notifications after a workflow runs, post the status of the workflow to a webhook, clean up artifacts or run another workflow.

    01/11/2024

    Read more...
  • Argo Workflows: How to actually run a task in a Workflow

    5 min read

    argo workflows kubernetes templates container script resource suspend

    When we are creating a Workflow in Argo Workflows, we need to define the tasks that we need to do. These tasks are defined using templates: They are the building blocks of a Workflow, defining how each task will be executed.

    31/10/2024

    Read more...
  • Golang: Using the Garbage Collection tracing

    3 min read

    golang garbage collection gc trace

    Go is a garbage-collected language: It will reclaim any unused memory. This automation can sometimes introduce performance challenges. We can use the GODEBUG environment variable to provide insights into specific internal operations of the Go runtime, such as scheduling, memory allocation, and garbage collection.

    30/10/2024

    Read more...

More recent...

Older content...