Skip to content

Instantly share code, notes, and snippets.

View ofthomas76's full-sized avatar

Ofni Thomas ofthomas76

View GitHub Profile
@neomantra
neomantra / High_Performance_Redis.md
Last active July 12, 2024 07:55
Notes on running Redis with HPC techniques

High Performance Redis

In response to this brief blog entry, @antirez tweeted for some documentation on high-performance techniques for Redis. What I present here are general high-performance computing (HPC) techniques. The examples are oriented to Redis. but they work well for any program designed to be single- or worker-threaded and asynchronous (e.g. uses epoll).

The motivation for using these techniques is to maximize performance of our system and services. By isolating work, controlling memory, and other tuning, you can achieve significant reduction in latency and increase in throughput.

My perspective comes from the microcosm of my own bare-metal (vs VM), on-premises deployment. It might not be suitable for all scenarios, especially cloud deployments, as I have little experience with HPC there. After some discussion, maybe this can be adapted as [redis.io documentation](https://redis.io/do

@icebob
icebob / k3s_helm_install.sh
Last active July 21, 2024 00:59
K3S + Helm installing
# Install K3S
curl -sfL https://get.k3s.io | sh -
# Copy k3s config
mkdir $HOME/.kube
sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
sudo chmod 644 $HOME/.kube/config
# Check K3S
kubectl get pods -n kube-system
@xsreality
xsreality / pom.xml
Last active February 1, 2024 12:40
Enabling tracing with Spring Cloud Sleuth and OpenTelemetry
<properties>
<spring-cloud.version>2021.0.0-M2</spring-cloud.version>
<spring-cloud-sleuth-otel.version>1.1.0-M3</spring-cloud-sleuth-otel.version>
<opentelemetry-exporter-otlp>1.7.0</opentelemetry-exporter-otlp>
<grpc-netty-shaded>1.41.0</grpc-netty-shaded>
</properties>
<dependencyManagement>
<dependencies>
<dependency>