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

Fix emqttd mgmt;Refine process tree structure #898

Merged
merged 1 commit into from Aug 3, 2016

Conversation

kevsmith
Copy link
Member

@kevsmith kevsmith commented Aug 3, 2016

  • Cog.BusDriver now traps exits if it successfully starts
    emqttd. This allows Cog to keep the message bus state in sync with
    Cog's overall state. If Cog is up, the message bus is up. If Cog is
    down, the message bus is down.
  • Removed the mnesia data file deletion logic from
    `Cog.BusDriver. Wound up causing more problems than it solved. We can
    tell users to delete the data dir in the release notes.
  • Moved all of Cog core, modulo Cog.Repo and Cog.BusDriver, to a
    separate supervisor named Cog.CoreSup with a restart strategy of
    one-for-one. The top level supervisor is now responsible for
    Cog.Repo, Cog.BusDriver, and Cog.CoreSup and uses the
    one-for-all restart strategy. This should stabilize Cog as all
    processes will be restarted if the database or message bus goes down.

Fixes #897

- `Cog.BusDriver` now traps exits if it successfully starts
  `emqttd`. This allows Cog to keep the message bus state in sync with
  Cog's overall state. If Cog is up, the message bus is up. If Cog is
  down, the message bus is down.

- Removed the `mnesia` data file deletion logic from
  `Cog.BusDriver. Wound up causing more problems than it solved. We can
  tell users to delete the data dir in the release notes.

- Moved all of Cog core, modulo `Cog.Repo` and `Cog.BusDriver`, to a
  separate supervisor named `Cog.CoreSup` with a restart strategy of
  one-for-one. The top level supervisor is now responsible for
  `Cog.Repo`, `Cog.BusDriver`, and `Cog.CoreSup` and uses the
  one-for-all restart strategy. This should stabilize Cog as all
  processes will be restarted if the database or message bus goes down.

Fixes #897
@kevsmith kevsmith added the review label Aug 3, 2016
@christophermaier
Copy link
Collaborator

:shipit:

@kevsmith kevsmith merged commit 1cfcfe7 into master Aug 3, 2016
@kevsmith kevsmith removed the review label Aug 3, 2016
@kevsmith kevsmith deleted the kevsmith/restart-emqttd branch August 3, 2016 17:34
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.

None yet

2 participants