Browse Source

add architecture

master
zeus 3 years ago
parent
commit
23a62302c9
  1. 88
      courses/architecture-microservice-swarmlab.adoc
  2. 596
      courses/architecture-microservice-swarmlab.adoc.html
  3. 1938
      courses/architecture-microservice-swarmlab.adoc.pdf
  4. BIN
      courses/microservices-swarm.png
  5. 1
      index-lab.adoc
  6. 19
      index-lab.adoc.html
  7. 1468
      index-lab.adoc.pdf

88
courses/architecture-microservice-swarmlab.adoc

@ -0,0 +1,88 @@
= Architecture!
Apostolos rootApostolos@swarmlab.io
// Metadata:
:description: Architecture instructions
:keywords: Architecture
ifndef::env-browser[]
:data-uri:
endif::[]
:images-cdn: http://localhost:3080/images
:toc: right
:toc-title: Table of contents
:toclevels: 4
:source-highlighter: highlight
:no-header-footer:
:nofooter:
:last-update-label!:
:icons: font
:sectnums:
:url_mongodb: https://en.wikipedia.org/wiki/MongoDB
.Architecture
****
We will be trying to create a swarm implementation that will allow communication between all of the members/nodes.
****
== Deploy microservices to a Swarm cluster
[.float-group]
--
[.right]
image::./microservices-swarm.png[Docker,650,role=right]
:hardbreaks:
{empty} +
{empty}
:!hardbreaks:
.microservices architecture
* a microservice performs a simple task
** communicates with clients or
** other microservices
*** communication mechanisms such as REST API requests or Websocket etc
[NOTE]
====
* Microservices can include any programming language you like
** and with the orchestration tools they are easy to deploy and maintain
This architecture uses NodeJS and Redis microservices deployed as Docker containers
====
--
=== Scalability
You can scale your application by updating the number of replica nodes in the swarm cluster
[source,yml]
----
...
deploy:
replicas: 15
placement:
max_replicas_per_node: 1
constraints:
- node.labels.region==regio1
...
----
.Segmentation
TIP: Dynamic infrastructure: services can scale up and down without waiting for each other.
=== Availability
No single point of failure.
=== Security
=== Configuration

596
courses/architecture-microservice-swarmlab.adoc.html

File diff suppressed because one or more lines are too long

1938
courses/architecture-microservice-swarmlab.adoc.pdf

File diff suppressed because it is too large

BIN
courses/microservices-swarm.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

1
index-lab.adoc

@ -215,6 +215,7 @@ A *virtual private network (VPN)* extends a private network across a public netw
== Cloud
=== http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/Intro-Cloud.adoc.html[Cloud computing^]
=== http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/Creaate-Swarm.adoc.html[Swarm architecture^]
=== http://docs.swarmlab.io/SwarmLab-HowTos/course/architecture-microservice-swarmlab.adoc.html[Swarm architecture example^]
=== http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-storage.adoc.html[Swarm Storage - INTRO^]
=== http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-minio-howto.adoc.html[Swarm Storage - CONFIG^]
=== http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-storage-howto.adoc.html[Swarm Storage - INSTALL^]

19
index-lab.adoc.html

@ -495,9 +495,10 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
<ul class="sectlevel2">
<li><a href="#_cloud_computing">5.1. Cloud computing</a></li>
<li><a href="#_swarm_architecture">5.2. Swarm architecture</a></li>
<li><a href="#_swarm_storage_intro">5.3. Swarm Storage - INTRO</a></li>
<li><a href="#_swarm_storage_config">5.4. Swarm Storage - CONFIG</a></li>
<li><a href="#_swarm_storage_install">5.5. Swarm Storage - INSTALL</a></li>
<li><a href="#_swarm_architecture_example">5.3. Swarm architecture example</a></li>
<li><a href="#_swarm_storage_intro">5.4. Swarm Storage - INTRO</a></li>
<li><a href="#_swarm_storage_config">5.5. Swarm Storage - CONFIG</a></li>
<li><a href="#_swarm_storage_install">5.6. Swarm Storage - INSTALL</a></li>
</ul>
</li>
<li><a href="#_frequently_asked_questions">6. Frequently Asked Questions</a></li>
@ -876,15 +877,19 @@ This tutorial demonstrates some common <strong>nmap</strong> port scanning scena
</div>
<div class="sect2">
<h3 id="_swarm_storage_intro">5.3. <a href="http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-storage.adoc.html" target="_blank" rel="noopener">Swarm Storage - INTRO</a></h3>
<h3 id="_swarm_architecture_example">5.3. <a href="http://docs.swarmlab.io/SwarmLab-HowTos/course/architecture-microservice-swarmlab.adoc.html" target="_blank" rel="noopener">Swarm architecture example</a></h3>
</div>
<div class="sect2">
<h3 id="_swarm_storage_config">5.4. <a href="http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-minio-howto.adoc.html" target="_blank" rel="noopener">Swarm Storage - CONFIG</a></h3>
<h3 id="_swarm_storage_intro">5.4. <a href="http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-storage.adoc.html" target="_blank" rel="noopener">Swarm Storage - INTRO</a></h3>
</div>
<div class="sect2">
<h3 id="_swarm_storage_install">5.5. <a href="http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-storage-howto.adoc.html" target="_blank" rel="noopener">Swarm Storage - INSTALL</a></h3>
<h3 id="_swarm_storage_config">5.5. <a href="http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-minio-howto.adoc.html" target="_blank" rel="noopener">Swarm Storage - CONFIG</a></h3>
</div>
<div class="sect2">
<h3 id="_swarm_storage_install">5.6. <a href="http://docs.swarmlab.io/SwarmLab-HowTos/labs/cloud/swarm-volumes-storage-howto.adoc.html" target="_blank" rel="noopener">Swarm Storage - INSTALL</a></h3>
</div>
</div>
@ -955,7 +960,7 @@ This tutorial demonstrates some common <strong>nmap</strong> port scanning scena
</div>
<div id="footer">
<div id="footer-text">
Last updated 2021-04-06 17:27:01 UTC
Last updated 2021-04-09 20:39:40 UTC
</div>
</div>
</body>

1468
index-lab.adoc.pdf

File diff suppressed because it is too large
Loading…
Cancel
Save