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

Adaptive ephemerality #76

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

davidmarkclements
Copy link

@davidmarkclements davidmarkclements commented Jan 23, 2020

Start a grape with dht_ephemeral: true and dht_adaptive: true and if the grape is long running - between 20-30mins (randomized range) uptime - the grape will become persistent (join the DHT).

This can be a useful mode for reducing network noise and guarding against triggering cascading failure scenarios - if a peer keeps crashing, but it's in adaptive mode, then it will never join the DHT. Whereas if the peer is persistent (dht_ephemeral: false) on init, it will be constantly exiting and rejoining the DHT.

Default is still dht_ephemeral: false but it might be worth considering dht_ephemeral: true, adaptive: true as default in a future iteration.

WIP because we need holepunchto/hyperdht#27 to land first

package.json Outdated Show resolved Hide resolved
@davidmarkclements davidmarkclements changed the title Adaptive ephemerality [WIP] Adaptive ephemerality Feb 28, 2020
@davidmarkclements
Copy link
Author

this is ready to go 👍

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.

1 participant