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

[feat] Actor redeployment when cluster mode is enabled #192

Closed
Tochemey opened this issue Dec 20, 2023 · 5 comments
Closed

[feat] Actor redeployment when cluster mode is enabled #192

Tochemey opened this issue Dec 20, 2023 · 5 comments
Assignees
Labels
feature New feature or request up for grabs Extra attention is needed

Comments

@Tochemey
Copy link
Owner

The cluster implementation simply relies on a distributed sharded key/value store engine. It handles the rebalance and the sharding mechanism.

  • A single instance of an actor is created when cluster mode is enabled. The actor identifier is propagated across the cluster.
  • Each node in the cluster has a copy of the created actor identifier and can easily refers to the location of the actor.
  • When the node where the given actor is created dies, then the other nodes in the cluster are aware of the event. However, at the moment, Go-Akt is not doing actor redeployment which is the issue we need to address.

It is an issue because that actor cannot be found when its node dies

@Tochemey Tochemey added bug Something isn't working up for grabs Extra attention is needed labels Dec 20, 2023
@Tochemey Tochemey self-assigned this Dec 20, 2023
@Tochemey
Copy link
Owner Author

There are two ways to go about this:

  • Actor serialization and deserialization: this will require serialize the implemented Actor into some bytes array and pass that data over the wire to be able to deserialize it whenever we need to re-create it.
  • Listen to cluster events and recreate actors when there really existed. We don't want to create non existing actors. We know that the given actor reference exist in the cluster even if its hosting node leaves the cluster.

@Tochemey Tochemey added feature New feature or request and removed bug Something isn't working labels Dec 23, 2023
@Tochemey Tochemey changed the title [bug] Actor redeployment when cluster mode is enabled [feat] Actor redeployment when cluster mode is enabled Dec 23, 2023
@Tochemey
Copy link
Owner Author

@Tochemey
Copy link
Owner Author

Tochemey commented Dec 24, 2023

I will look into actors' redeployment. This may mean changing the underlying cluster engine and falling back to core raft and co. Any help is welcome. cc @AlexanderTar, @chenxyzl and @civilizeddev.

@Tochemey Tochemey added wontfix This will not be worked on and removed wontfix This will not be worked on labels Jan 14, 2024
@Tochemey
Copy link
Owner Author

Tochemey commented Mar 3, 2024

Some thoughts here:

@Tochemey
Copy link
Owner Author

I will not be able to work on this at the moment.

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

Successfully merging a pull request may close this issue.

1 participant