Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
1# slingshot: atproto record edge cache
2
3local dev running:
4
5```bash
6RUST_LOG=info,slingshot=trace ulimit -n 4096 && RUST_LOG=info cargo run -- --jetstream us-east-1 --cache-dir ./foyer
7```
8
9the identity cache uses a lot of files so you probably need to bump ulimit
10
11on macos:
12
13```bash
14ulimit -n 4096
15```
16
17## prod deploy
18
19you **must** setcap the binary to run it on apollo!!!!
20
21```bash
22sudo setcap CAP_NET_BIND_SERVICE=+eip ../target/release/slingshot
23```
24
25then run with
26
27```bash
28RUST_BACKTRACE=1 RUST_LOG=info,slingshot=trace /home/ubuntu/links/target/release/slingshot \
29 --jetstream wss://jetstream1.us-east.fire.hose.cam/subscribe \
30 --healthcheck https://hc-ping.com/[REDACTED] \
31 --cache-dir ./foyer \
32 --record-cache-memory-mb 2048 \
33 --record-cache-disk-gb 32 \
34 --identity-cache-memory-mb 1024 \
35 --identity-cache-disk-gb 8 \
36 --collect-metrics \
37 --acme-ipv6 \
38 --acme-domain slingshot.microcosm.blue \
39 --acme-contact phil@bad-example.com \
40 --acme-cache-path /home/ubuntu/certs
41```
42
43
44## license
45
46This work is dual-licensed under MIT and Apache 2.0. You can choose between one of them if you use this work.
47
48`SPDX-License-Identifier: MIT OR Apache-2.0`