Update readmes
parent
c391db0a42
commit
8ad97d6752
|
@ -0,0 +1,32 @@
|
||||||
|
# Clone repo, cd to `$REPO_HOME/indexer`
|
||||||
|
|
||||||
|
docker compose up -d --build
|
||||||
|
|
||||||
|
|
||||||
|
# Add PDSs
|
||||||
|
|
||||||
|
`docker compose exec -it postgres psql -U postgres -d bluesky`
|
||||||
|
|
||||||
|
```
|
||||||
|
insert into pds (host) values ('https://agaric.us-west.host.bsky.network'),
|
||||||
|
('https://amanita.us-east.host.bsky.network'),
|
||||||
|
('https://blewit.us-west.host.bsky.network'),
|
||||||
|
('https://boletus.us-west.host.bsky.network'),
|
||||||
|
('https://bsky.social'),
|
||||||
|
('https://chaga.us-west.host.bsky.network'),
|
||||||
|
('https://conocybe.us-west.host.bsky.network'),
|
||||||
|
('https://enoki.us-east.host.bsky.network'),
|
||||||
|
('https://hydnum.us-west.host.bsky.network'),
|
||||||
|
('https://inkcap.us-east.host.bsky.network'),
|
||||||
|
('https://lepista.us-west.host.bsky.network'),
|
||||||
|
('https://lionsmane.us-east.host.bsky.network'),
|
||||||
|
('https://maitake.us-west.host.bsky.network'),
|
||||||
|
('https://morel.us-east.host.bsky.network'),
|
||||||
|
('https://oyster.us-east.host.bsky.network'),
|
||||||
|
('https://porcini.us-east.host.bsky.network'),
|
||||||
|
('https://puffball.us-east.host.bsky.network'),
|
||||||
|
('https://russula.us-west.host.bsky.network'),
|
||||||
|
('https://shiitake.us-east.host.bsky.network'),
|
||||||
|
('https://shimeji.us-east.host.bsky.network'),
|
||||||
|
('https://verpa.us-west.host.bsky.network');
|
||||||
|
```
|
|
@ -0,0 +1,27 @@
|
||||||
|
# Control number of workers
|
||||||
|
|
||||||
|
Full throttle
|
||||||
|
`curl 'localhost:11003/pool/resize?size=50'`
|
||||||
|
|
||||||
|
Half throttle
|
||||||
|
`curl 'localhost:11003/pool/resize?size=25'`
|
||||||
|
|
||||||
|
Stop eating all of my Internet
|
||||||
|
`curl 'localhost:11003/pool/resize?size=10'`
|
||||||
|
|
||||||
|
# Peak into db
|
||||||
|
|
||||||
|
`docker compose exec -it postgres psql -U postgres -d bluesky`
|
||||||
|
|
||||||
|
Seen repos
|
||||||
|
`select count(*) from repos;`
|
||||||
|
|
||||||
|
Fully indexed repos
|
||||||
|
`select count(*) from repos where last_indexed_rev <> '' and (last_indexed_rev >= first_rev_since_reset or first_rev_since_reset is null or first_rev_since_reset = '');`
|
||||||
|
|
||||||
|
```
|
||||||
|
SELECT pid, age(clock_timestamp(), query_start), state, query
|
||||||
|
FROM pg_stat_activity
|
||||||
|
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
|
||||||
|
ORDER BY query_start asc;
|
||||||
|
```
|
Loading…
Reference in New Issue