Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load test: sending to lobid-resources subject inboxes #986

Closed
fsteeg opened this issue Apr 4, 2019 · 14 comments
Closed

Load test: sending to lobid-resources subject inboxes #986

fsteeg opened this issue Apr 4, 2019 · 14 comments
Assignees

Comments

@fsteeg
Copy link
Member

fsteeg commented Apr 4, 2019

  • Every day, for every new lobid-resource, for each of its subjects, POST an LDN to the subject's inbox, e.g. to https://test.skohub.io/inbox?target=http://test.lobid.org/gnd/4020517-4
  • Send the lobid-resource's full JSON as the POST body
  • Spread the updates over the day to simulate live updates

While we don't have a live system behind lobid-resources, the idea here is to simulate the load created by multiple senders. To increase the amount of messages, we could change this from subjects to authors in the future.

@fsteeg fsteeg created this issue from a note in SkoHub (Backlog) Apr 4, 2019
@fsteeg fsteeg added the ready label Apr 4, 2019
@fsteeg fsteeg moved this from Backlog to Ready in SkoHub Apr 4, 2019
@fsteeg fsteeg moved this from Ready to Backlog in SkoHub Apr 5, 2019
@acka47 acka47 added this to Ready in lobid board Apr 8, 2019
@acka47 acka47 removed the ready label Apr 9, 2019
@dr0i dr0i moved this from Ready to Working in lobid board Apr 11, 2019
@dr0i
Copy link
Member

dr0i commented Apr 12, 2019

Wrote a gist https://gist.github.com/dr0i/72fdc385fc4e72a6930f1644523bbdc6.
When https://test.skohub.io/ inbox is up, it may be crontabbed.

@dr0i dr0i assigned fsteeg and unassigned dr0i Apr 12, 2019
@dr0i dr0i moved this from Working to Review in lobid board Apr 12, 2019
@fsteeg fsteeg removed their assignment Apr 26, 2019
@acka47
Copy link
Contributor

acka47 commented Apr 30, 2019

When https://test.skohub.io/ inbox is up, it may be crontabbe

https://test.skohub.io/ is up now, see skohub-io/skohub-pubsub#12

@acka47 acka47 moved this from Backlog to Ready in SkoHub Apr 30, 2019
@dr0i
Copy link
Member

dr0i commented Apr 30, 2019

Up'n running. Crontabbed starting every day at 09:00.

@dr0i dr0i assigned dr0i and fsteeg and unassigned dr0i Apr 30, 2019
@dr0i dr0i moved this from Ready to Review in SkoHub Apr 30, 2019
@fsteeg
Copy link
Member Author

fsteeg commented Apr 30, 2019

Just a heads-up for @literarymachine: https://test.skohub.io/ should start receiving automated traffic starting tomorrow 09:00, see #986 (comment) (first comment in this issue).

@fsteeg fsteeg removed their assignment Apr 30, 2019
@dr0i
Copy link
Member

dr0i commented Apr 30, 2019

@literarymachine @fsteeg it's already started and sending. And will , from now on, start every day at 9:00.

@dr0i
Copy link
Member

dr0i commented May 3, 2019

Create #992 to be able to see what's happening.
@fsteeg If this issue is good you can close it.

@fsteeg fsteeg closed this as completed May 3, 2019
SkoHub automation moved this from Review to Done May 3, 2019
lobid board automation moved this from Review to Done May 3, 2019
@acka47
Copy link
Contributor

acka47 commented May 9, 2019

Talking to @literarymachine at ELAG2019, he said that it would make sense to make the load test a bit harder by sending out all the notifications at once as soon as the daily updates are in. Reopening to test this scenario for some days.

@acka47 acka47 reopened this May 9, 2019
SkoHub automation moved this from Done to Ready May 9, 2019
@dr0i
Copy link
Member

dr0i commented May 13, 2019

Removed the sleep. This script will now work as fast as it can, I expect no more than 10/s.

@dr0i dr0i assigned acka47 and unassigned fsteeg May 13, 2019
@dr0i dr0i moved this from Ready to Review in SkoHub May 13, 2019
@literarymachine
Copy link

Removed the sleep. This script will now work as fast as it can, I expect no more than 10/s.

I haven't closely monitored the server, but it is still up and running. Thinking about this, I should probably add some logging: skohub-io/skohub-pubsub#14

@literarymachine
Copy link

To increase the amount of messages, we could change this from subjects to authors in the future.

Why not both?

@dr0i
Copy link
Member

dr0i commented Jul 11, 2019

Is this running test actually useful or can I stop if it's indeed unnecessarily producing load?

@acka47
Copy link
Contributor

acka47 commented Jul 11, 2019

I guess you can stop it for now.

@acka47 acka47 assigned dr0i and unassigned acka47 Sep 6, 2019
@acka47
Copy link
Contributor

acka47 commented Sep 6, 2019

@dr0i have you stopped the load test already? I not, please do and close this issue when it is stopped.

@dr0i
Copy link
Member

dr0i commented Sep 12, 2019

Yeah I stopped it already at 11th July. For reference, it can be started again enabling dispatchLobidResourcesToSkohubInbox.sh, see crontab. Closing.

@dr0i dr0i closed this as completed Sep 12, 2019
SkoHub automation moved this from Review to Done Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
SkoHub
  
Done
Development

No branches or pull requests

4 participants