Skip to content

Instantly share code, notes, and snippets.

View otrack's full-sized avatar

Pierre Sutra otrack

View GitHub Profile
# Cassandra storage config YAML
# NOTE:
# See https://cassandra.apache.org/doc/latest/configuration/ for
# full explanations of configuration directives
# /NOTE
# The name of the cluster. This is mainly used to prevent machines in
# one logical cluster from joining another.
https://db2cdn.fra1.cdn.digitaloceanspaces.com/assets/document/103_Carte_lieu_final.jpg
Dolines de Limère State Park
public class Add extends Operation{
Add(Node left, Node right) {
super(left, right);
}
@Override
public int execute() {
return op(0).execute() + op(1).execute();
}
@otrack
otrack / Dockerfile
Last active November 24, 2023 16:46
FROM python:3.10
WORKDIR /app
RUN pip install delegator.py
RUN pip install web.py
RUN apt-get update && apt-get install -y imagemagick
RUN echo "<policy domain=\"coder\" rights=\"read|write\" pattern=\"PDF\" />" >> /etc/ImageMagick-6/policy.xml
ADD pdfmagic.py /app
EXPOSE 8080
@otrack
otrack / stake.md
Last active January 31, 2024 18:07

Investigating stake-based dissemination in CometBFT

Context

Blockchain is a decade-old technology to construct decentralized trusted storage and applications. At core, this technology relies on replication protocols that connect hundreds to thousands of geo-distributed processes. Participating processes disseminate transactions (such as operations of a smart contract) across the system. They also continously agree on the next block of transactions to add to the chain. At each process, transactions in the chain are executed in order against a local copy of the application.

Assessing the Performance of Cassandra 5 at Scale

Context

Apache Cassandra is one of the most prominent modern storage systems. It offers a complex data model and a rich API (Cassandra Query Language) to write distributed applications. This storage system is able to store petabytes of data and is used in many industry-leading companies as a key building block in the application stack [a]. In particular, Cassandra is extremely robust and able to replicate data consistently across several geo-graphical locations despite network failures, or even an entire datacenter outage.

A new version of Apache Cassandra (version 5) has been announced recently [b].

var mainElt = document.getElementById('main');
var graphElt = document.getElementById('graph');
var mainChart = echarts.init(mainElt);
var graphChart = echarts.init(graphElt);
var headers = []
var headersMap = {
"nodes" : "#nodes",
"propagation_rate" : "propagation rate (%)",
"sent" : "#sent",
.experiments {
display: inline-block;
width: 45%;
height: 80vh;
margin: 2em;
/* background-color: green; */
}
.graph {
display: inline-block;
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
nodes;propagation_rate;sent;seen;completion;total_bandwidth;useful_bandwidth;overhead;redundancy;degree;bandwidth
4;20;100;44;43.999996;8466;13200;0;0.039772727;3;{"0":{"0":0,"1":816,"2":510,"3":510},"1":{"0":714,"1":0,"2":510,"3":918},"2":{"0":1122,"1":816,"2":0,"3":1122},"3":{"0":612,"1":510,"2":306,"3":0}}
8;20;100;56.375;56.374996;60792;39200;0.5508163265306123;0.54323727;7;{"0":{"0":0,"1":1836,"2":918,"3":1020,"4":816,"5":1020,"6":1122,"7":918},"1":{"0":1122,"1":0,"2":1326,"3":1020,"4":1122,"5":1326,"6":714,"7":510},"2":{"0":1224,"1":918,"2":0,"3":1428,"4":918,"5":1530,"6":918,"7":1122},"3":{"0":1326,"1":1224,"2":918,"3":0,"4":714,"5":1122,"6":1020,"7":1122},"4":{"0":918,"1":1734,"2":1428,"3":1122,"4":0,"5":1224,"6":714,"7":918},"5":{"0":816,"1":1224,"2":1122,"3":1224,"4":918,"5":0,"6":1020,"7":1428},"6":{"0":816,"1":918,"2":1020,"3":714,"4":1632,"5":816,"6":0,"7":612},"7":{"0":918,"1":1938,"2":1020,"3":918,"4":1020,"5":1122,"6":1224,"7":0}}
16;20;100;90.4375;90.43749;375360;135000;1.7804444444444445;
WHO=psutra
DBLP_ALIAS=09/5760
BIB_ALIAS=ps
wget --quiet https://dblp.org/pid/${DBLP_ALIAS}.bib?param=1 -O ${WHO}.bib
i=$(grep DBLP: ${WHO}.bib | wc -l)
while [[ $(grep -q DBLP: ${WHO}.bib; echo $?) -eq 0 ]];
do
sed 0,/DBLP:[^,]*/s/DBLP:[^,]*/${BIB_ALIAS}${i}/ -i ${WHO}.bib