Skip to content

Instantly share code, notes, and snippets.

@akatashev
akatashev / akka-cluster-k8s-istio.md
Last active August 2, 2024 09:51
Bootstrapping Akka Cluster on K8s with Istio in 2024

Bootstrapping Akka Cluster on K8s with Istio in 2024

The year is specified, because things can change and better ways to do it will possibly appear. I'm documenting what worked for me right now, since trying to bootstrap an Akka Cluster instance on K8s with Istio took a few days of investigation, and I couldn't easily find a working solution.

This is not a detailed description of Akka Cluster and related configuration, but rather a short description of the minimal amount of things that are necessary to allow Akka Cluster nodes to see each other on K8s, if istio is in the way.

What didn't work?

The first attempt to find something about "Akka Cluster Bootstrap on K8s" will likely show this page:

@koute
koute / borrow_vs_as_ref.rs
Created March 15, 2017 18:14
Rust: Borrow vs AsRef
#![allow(non_snake_case)]
#![allow(dead_code)]
use std::borrow::Borrow;
use std::convert::AsRef;
struct Y;
struct X {
y: Y
package hu.akarnokd.reactiveflowbridge;
import java.util.Objects;
import java.util.concurrent.Flow;
import java.util.function.Function;
/**
* Bridge between Reactive-Streams API and the Java 9 Flow API.
*/
public final class ReactiveFlowBridge {
@apangin
apangin / HotSpot JVM intrinsics
Last active September 1, 2024 08:16
HotSpot JVM intrinsics
_hashCode java/lang/Object.hashCode()I
_getClass java/lang/Object.getClass()Ljava/lang/Class;
_clone java/lang/Object.clone()Ljava/lang/Object;
_dabs java/lang/Math.abs(D)D
_dsin java/lang/Math.sin(D)D
_dcos java/lang/Math.cos(D)D
_dtan java/lang/Math.tan(D)D
_datan2 java/lang/Math.atan2(DD)D
_dsqrt java/lang/Math.sqrt(D)D
_dlog java/lang/Math.log(D)D
@MarcDiethelm
MarcDiethelm / Contributing.md
Last active September 13, 2024 15:58
How to contribute to a project on Github

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.

@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active September 19, 2024 05:47
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'