Skip to content

Instantly share code, notes, and snippets.

@DeathPoem
DeathPoem / download_pdf
Created October 10, 2024 10:35
'Bw e -tree: an Evolution of Bw-tree on Fast Storage'
<Bw e -tree: an Evolution of Bw-tree on Fast Storage>
baidu cloud:
链接: https://pan.baidu.com/s/1zVXXLwVUhcVojF8AdDKzwQ?pwd=qs9k 提取码: qs9k
#include <iostream>
#include <vector>
#include <unordered_set>
using namespace std;
typedef struct Row {
int a;
int b;
} Row;
// Example program
#include <iostream>
#include <string>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <vector>
#include <queue>
#include <cassert>
#include <thread>
@DeathPoem
DeathPoem / Dockerfile
Created July 16, 2020 04:23
how to Change storage.tsdb.retention on Docker Hub "prom/prometheus"
FROM prom/prometheus
CMD ["--config.file=/etc/prometheus/prometheus.yml","--storage.tsdb.path=/prometheus","--web.console.libraries=/usr/share/prometheus/console_libraries","--web.console.templates=/usr/share/prometheus/consoles","--storage.tsdb.retention.size=100GB"]
# docker build --tag 'prom/prometheus:myprom' .
# docker run --network=host -v /$path/prometheus.yml:/etc/prometheus/prometheus.yml -v /export/Prometheus:/prometheus -d prom/prometheus:myprom