Skip to content

Commit fd3f6c6

Browse files
committed
Be less aggressive in event size
1 parent ffa5225 commit fd3f6c6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

strfry/config/strfry.conf

+5-7
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ relay {
4141
}
4242

4343
# Maximum accepted incoming websocket frame size (should be larger than max event and yesstr msg) (restart required)
44-
maxWebsocketPayloadSize = 131072
44+
maxWebsocketPayloadSize = 262144
4545

4646
# Websocket-level PING message frequency (should be less than any reverse proxy idle timeouts) (restart required)
4747
autoPingSeconds = 55
@@ -97,10 +97,7 @@ relay {
9797

9898
# reqMonitor threads: Handle filtering of new events (restart required)
9999
reqMonitor = 3
100-
101-
# yesstr threads: Experimental yesstr protocol (restart required)
102-
yesstr = 1
103-
}
100+
}
104101

105102
negentropy {
106103
# Support negentropy protocol messages
@@ -112,15 +109,16 @@ relay {
112109
}
113110

114111
events {
115-
# Maximum size of normalised JSON, in bytes One of the users we found was
112+
# One of the users we found was
116113
# following 2546 users, and the JSON for that was 190k
117114
# https://primal.net/p/npub1nlch0l8fj86x4ew2f5kxdn4q3vwmprkz0v7hsm9vcry62xee683qmqq7ay
118115
# Explore the followers DB periodically to find the largest user, compare
119116
# that with other services and check if the limits are still reasonable
120117
# If you change this, ensure it aligns to events relay filters:
121118
# https://github.com/planetary-social/nos-event-service/blob/e7aacd5d402f9cd8be8aee7ad64e3ed211357f31/service/app/handler_process_saved_event.go#L21-L26
122119

123-
maxEventSize = 262144
120+
# Maximum size of normalised JSON, in bytes
121+
maxEventSize = 196608
124122

125123
# Events newer than this will be rejected
126124
rejectEventsNewerThanSeconds = 900

0 commit comments

Comments
 (0)