Notices by Vivi Nella Verita (verita84eva@poster.place), page 3
-
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Saturday, 27-Apr-2024 06:05:19 JST
Vivi Nella Verita
@tyler @kirby
Is it right to groom kids with Linux? :trannycide2: -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Saturday, 27-Apr-2024 01:59:16 JST
Vivi Nella Verita
@dj
https://pastebin.com/AHQeTtCp -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Saturday, 27-Apr-2024 01:59:09 JST
Vivi Nella Verita
@dj
A function to actually clean Akkoma /Pleroma well
```
DATABASES=(akkoma detroitriotcity)
echo "Stopping Akkoma"
systemctl stop akkoma
for i in "${DATABASES[@]}"; do
echo "Scanning Fderated Posts to Delete: $i"
su postgres -s /bin/bash -lc "echo \"SELECT COUNT(*) FROM \"objects\" AS o0 WHERE (o0.\"data\"->'to' ? 'https://www.w3.org/ns/activitystreams#Public' OR o0.\"data\"->'cc' ? 'https://www.w3.org/ns/activitystreams#Public') AND (o0.\"inserted_at\" < now() - interval '15 days' ) AND (split_part(o0.\"data\"->>'actor', '/', 3) != '$i')\" | psql $i"
echo "Deleting Objects for: $i"
su postgres -s /bin/bash -lc "echo \"DELETE FROM \"objects\" AS o0 WHERE (o0.\"data\"->'to' ? 'https://www.w3.org/ns/activitystreams#Public' OR o0.\"data\"->'cc' ? 'https://www.w3.org/ns/activitystreams#Public') AND (o0.\"inserted_at\" < now() - interval '15 days' ) AND (split_part(o0.\"data\"->>'actor', '/', 3) != '$i')\" | psql $i"
echo "Deleting Activities for: $i"
su postgres -s /bin/bash -lc "echo \"DELETE FROM \"activities\" where data->>'type' = 'Create' and local = 'f' and inserted_at < now() - interval '10 days'"\" | psql $i
echo "Starting Akkoma: $i"
systemctl start akkoma
done
}
```In conversation from poster.place permalink Attachments
-
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 15:01:41 JST
Vivi Nella Verita
@mint @colonelj @i @admin @ChristiJunior
Some success. After Repack, Activities table went from 38GB to 15GB. I deleted Federated Activites up to the last 10 days. WTF happened in the last 10 days on Fedi lol
Total Disk Footprint of the Database Dir is now 34GB. It was 93GB before we started the work today.
Thanks everyone!In conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 09:47:20 JST
Vivi Nella Verita
@mint @colonelj @i
pg_backup will not include all the deleted data right?In conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 09:46:05 JST
Vivi Nella Verita
@mint @colonelj @i
will do repack now. Doing a dump first with pg_backup to see if size is smallerIn conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 09:45:08 JST
Vivi Nella Verita
@mint @colonelj @i
I ran it , even ran it again to 30 days. Activities size didn't change. Heavy DIsk IO when running so it was doing somethingIn conversation from poster.place permalink Attachments
-
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 06:33:30 JST
Vivi Nella Verita
@mint @colonelj @i oh boy. Try deleting shit from your own instance and oban_jobs filles up and kills your disk io . That was a first big issue with DRc when trying to clean it up In conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 06:25:41 JST
Vivi Nella Verita
@mint @colonelj @i
Ah is that why deletes are always slow and takes days like with the original commands you gave me ?In conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 06:24:39 JST
Vivi Nella Verita
@mint @colonelj @i
We did follow a lot. I just recently turned it off . Database grew form 60gb to 93gb in a weenIn conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 06:13:16 JST
Vivi Nella Verita
@i @colonelj
Running:
```
detroitriotcity=# delete from activities where data->>'type' = 'Create' and local = 'f' and inserted_at < now() - interval '365 days';
```
NowIn conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 06:11:11 JST
Vivi Nella Verita
@i @colonelj
lol yeah I been doing that daily since you told me via cron. I have no idea how to do the Activities table safely. Your suggestion for said tables does not really do much. It's yuge!In conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 06:11:08 JST
Vivi Nella Verita
@i @colonelj
Ty. DRC almost 90 GB and is growing fast. Local posts would not be deleted? Only Federated?In conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 05:33:40 JST
Vivi Nella Verita
@i @colonelj
Ah, there still is not a good way to even maintain the Pleroma/Akkoma database. It took me two days to delete 157354 old posts using it's built-in commands and they just let the Activities table grow and grow without a way to clean itIn conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 05:33:04 JST
Vivi Nella Verita
@i @colonelj
I can't read all of thatIn conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Friday, 26-Apr-2024 05:33:01 JST
Vivi Nella Verita
@i @colonelj
Anyone got a quick summary for why SPC went down? Did the DB just grow out of control?In conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Wednesday, 24-Apr-2024 14:06:29 JST
Vivi Nella Verita
@burner
cc @djIn conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Wednesday, 24-Apr-2024 14:06:27 JST
Vivi Nella Verita
@dj @burner
Ditto is a server thst is a nostr relay and sends posts to the mostr bridge. Soapbox is the UI you slap on top of it .
This solution would be a one-stop-shop for nostr and the fediverse . Even has name verificationIn conversation from poster.place permalink -
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Wednesday, 24-Apr-2024 10:20:28 JST
Vivi Nella Verita
@burner
Check out what awesome thing Alex did
https://ditto.poster.place
If you switched to his Soapbox/Nostr relay called Ditto w Soapbox, you can use it to post to Nostr and Fedi all at the same time through the bridge.
Probably a better plan than just leavinng akkoma to soapbox.pub?
You can do both?In conversation from poster.place permalink Attachments
-
Embed this notice
Vivi Nella Verita (verita84eva@poster.place)'s status on Wednesday, 24-Apr-2024 10:20:27 JST
Vivi Nella Verita
@burner @alex @Dan_Hulson
On Nostr, accounts are totally different. You get a public key and private key, so no. Those credentials work anywhere , decentralized.
The database is completely different and more secure/private, so no.
Nostr has DM's but I don't see that in Soapbox yet.In conversation from poster.place permalink