Skip to content

Conversation

lukedirtwalker
Copy link
Collaborator

@lukedirtwalker lukedirtwalker commented Jan 14, 2020

Holding requests in the PS can lead to a lot of outstanding requests
if a certain destination AS is not running.

The holding of requests helped to make integration tests more stable,
because at the start of a full topology it is true that segments will be registered in the future,
in general this does not hold.

For production code this can lead to a lot of CPU usage for nothing.


This change is Reviewable

Holding requests in the PS can lead to a lot of outstanding requests
if a certain destination AS is not running.

The holding of requests helped to make integration tests more stable,
because at the start of a full topology it is true that segments will be registered in the future,
in general this does not hold.

For production code this can lead to a lot of CPU usage for nothing.
Copy link
Contributor

@karampok karampok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@karampok karampok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker merged commit 394b0ff into scionproto:master Jan 14, 2020
@lukedirtwalker lukedirtwalker deleted the pubRemovePSReqHolding branch January 14, 2020 12:05
matzf added a commit to matzf/scion that referenced this pull request May 6, 2020
These have become unused by removing the request holding feature in scionproto#3604.
matzf added a commit to matzf/scion that referenced this pull request May 12, 2020
These have become unused by removing the request holding feature in scionproto#3604.
lukedirtwalker pushed a commit that referenced this pull request May 12, 2020
* Remove code for segment request validation
  This segment request validation appears to never have been activated.

  This will be solved differently in the future, by having a separate segment request handler for local requests (TCP only) and, in core ASes only, a simpler handler for requests from other path servers (over SCION/QUIC). This will simplify the validation of the requests, so the existing code would not help a lot.

* Remove unused `RetrySleep` and `IsParamsLocal` from segreq. These have become unused by removing the request holding feature in #3604.
  Replace use of now unneeded `segreq.LocalInfo` interface with `segfetcher.LocalInfo`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants