Skip to content

Commit ffa5225

Browse files
authored
Merge pull request #5 from planetary-social/bump-event-limits
Bump event limits
2 parents b70e7f7 + d1f9035 commit ffa5225

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

strfry/config/strfry.conf

+10-3
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,15 @@ relay {
112112
}
113113

114114
events {
115-
# Maximum size of normalised JSON, in bytes
116-
maxEventSize = 65536
115+
# Maximum size of normalised JSON, in bytes One of the users we found was
116+
# following 2546 users, and the JSON for that was 190k
117+
# https://primal.net/p/npub1nlch0l8fj86x4ew2f5kxdn4q3vwmprkz0v7hsm9vcry62xee683qmqq7ay
118+
# Explore the followers DB periodically to find the largest user, compare
119+
# that with other services and check if the limits are still reasonable
120+
# If you change this, ensure it aligns to events relay filters:
121+
# https://github.com/planetary-social/nos-event-service/blob/e7aacd5d402f9cd8be8aee7ad64e3ed211357f31/service/app/handler_process_saved_event.go#L21-L26
122+
123+
maxEventSize = 262144
117124

118125
# Events newer than this will be rejected
119126
rejectEventsNewerThanSeconds = 900
@@ -128,7 +135,7 @@ events {
128135
ephemeralEventsLifetimeSeconds = 300
129136

130137
# Maximum number of tags allowed
131-
maxNumTags = 2000
138+
maxNumTags = 3000
132139

133140
# Maximum size for tag values, in bytes
134141
maxTagValSize = 1024

0 commit comments

Comments
 (0)