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

NOISSUE - Add docker-compose for MQTT cluster #841

Merged
merged 12 commits into from
Sep 12, 2019
Merged

Conversation

drasko
Copy link
Contributor

@drasko drasko commented Sep 6, 2019

Pull request title should be MF-XXX - description or NOISSUE - description where XXX is ID of issue that this PR relate to.
Please review the CONTRIBUTING.md file for detailed contributing guidelines.

What does this do?

Introduces docker-compose files for MQTT cluster. Also, modifies nginx.conf to improve performance.

Which issue(s) does this PR fix/relate to?

Put here Resolves #XXX to auto-close the issue that your PR fixes (if such)

List any changes that modify/break current functionality

nginx.conf files have been changed, and this demands testing

Have you included tests for your changes?

Did you document any new/modified functionality?

Notes

@codecov-io
Copy link

codecov-io commented Sep 6, 2019

Codecov Report

Merging #841 into master will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #841      +/-   ##
==========================================
+ Coverage   85.53%   85.57%   +0.04%     
==========================================
  Files          72       72              
  Lines        4708     4708              
==========================================
+ Hits         4027     4029       +2     
+ Misses        445      443       -2     
  Partials      236      236
Impacted Files Coverage Δ
things/service.go 88.02% <0%> (+1.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4870119...df72559. Read the comment docs.

@drasko
Copy link
Contributor Author

drasko commented Sep 8, 2019

WIP label removed

⚠️ Please pull the branch and test on your machines.

This PR tries to move as much as possible of mutual nginx.conf code into the snippets, also introduce cluster support.

Additionally, in entrypoint.sh environment (read from .env) is substituted in nginx.conf, so proxy URLs are not hadrcoded any more.

docker-compose.yaml is broken in several files, as Aedes is pulled out in aedes.yaml so it can be replaced with verne.yaml. Additionally, verne-cluster.yaml can be used instead (which will pull and setup correct nginx.conf).

mteodor
mteodor previously approved these changes Sep 11, 2019
mteodor
mteodor previously approved these changes Sep 11, 2019
Copy link
Contributor

@mteodor mteodor left a comment

Choose a reason for hiding this comment

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

LGTM

site/
.vscode

# MQTT
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer to keep this in its own folder. Monorepo consists of multiple projects, where each has its own .gitignore.
Its much cleaner IMHO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer this centralized overview and one-place tuning. For now our structure is small enough, and sections are well commented.

If really needed let's do this in a separate issue, not to delay this PR.

Copy link
Contributor

@anovakovic01 anovakovic01 left a comment

Choose a reason for hiding this comment

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

Just fix gitignore

Copy link
Contributor

@anovakovic01 anovakovic01 left a comment

Choose a reason for hiding this comment

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

LGTM!

@nmarcetic nmarcetic merged commit 3b19292 into absmach:master Sep 12, 2019
manuio pushed a commit that referenced this pull request Oct 12, 2020
* Add MQTT cluster configs

Signed-off-by: Drasko DRASKOVIC <[email protected]>

* Bump worker_connections value in nginx.conf

Signed-off-by: drasko <[email protected]>

* Revert config.toml

Signed-off-by: drasko <[email protected]>

* Fix cluster

Signed-off-by: drasko <[email protected]>

* Move non-ssl server into the same directive

Signed-off-by: drasko <[email protected]>

* Fix cluster

Signed-off-by: drasko <[email protected]>

* Remove unnecessary comments

Signed-off-by: drasko <[email protected]>

* Organize docker-compose and nginx conf files

Signed-off-by: drasko <[email protected]>

* Correct nginx.conf for mTLS and aux changes

Signed-off-by: drasko <[email protected]>

* Fix NginX conf trailing slash in proxy_pass

Signed-off-by: drasko <[email protected]>

* Fix path for MQTT

Signed-off-by: drasko <[email protected]>

* Fix minorstuff in gitignore and comments

Signed-off-by: drasko <[email protected]>
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.

6 participants