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

Determine and implement the behavior of dcurl with different remote component status #205

Open
marktwtn opened this issue Nov 4, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@marktwtn
Copy link
Collaborator

marktwtn commented Nov 4, 2019

dcurl should keep working well with the different status of the remote component behind the remote interface, such as inactivation, termination or restart of RabbitMQ broker and remote worker .

  • Termination:
    It is initialized successfully and runs for a while but somehow been closed.
  • Inactivation:
    It is never been run, which is treated as initialization failure.
RabbitMQ broker Remote worker Determined behavior
Inactivation
Termination
* Use local available hardware to do the PoW
Print out the warning
Restart * Use remote worker to do the PoW
Normal Inactivation
Termination
Wait remote worker for a while(10 sec) and use local available hardware to do the PoW if it does not restart
Normal Restart
Normal
Use remote worker to do the PoW
@marktwtn marktwtn added the enhancement New feature or request label Nov 4, 2019
@marktwtn marktwtn self-assigned this Nov 4, 2019
@marktwtn
Copy link
Collaborator Author

marktwtn commented Dec 19, 2019

The visualization of current implementation would look like:
2019-12-19 03-14-54 的螢幕擷圖

@marktwtn
Copy link
Collaborator Author

After the RabbitMQ broker is restarted, if the connection is setup again, the dcurl can use the remote worker again.

I've found the corresponding code to setup again, but the source code execution flow should be considered carefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant