Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cloud-Computing_2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Luzzi
Cloud-Computing_2022
Commits
d831621d
Commit
d831621d
authored
2 years ago
by
Christopher Luzzi
Browse files
Options
Downloads
Patches
Plain Diff
Aufgabe4
parent
fee1313b
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
application/server.js
+1
-0
1 addition, 0 deletions
application/server.js
docker-compose.yml
+6
-43
6 additions, 43 deletions
docker-compose.yml
nginx.conf
+0
-37
0 additions, 37 deletions
nginx.conf
prometheus.yml
+0
-11
0 additions, 11 deletions
prometheus.yml
with
7 additions
and
91 deletions
application/server.js
+
1
−
0
View file @
d831621d
...
...
@@ -80,6 +80,7 @@ db.mongoose
});
//setting up the endpoints
app
.
get
(
'
/start
'
,
(
req
,
res
)
=>
{
res
.
render
(
'
register.html
'
)
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
6
−
43
View file @
d831621d
version
:
"
3"
services
:
nginx
:
image
:
nginx:alpine
volumes
:
-
./nginx.conf:/etc/nginx/nginx.conf:ro
links
:
-
server-john
-
server-paul
-
server-george
-
server-ringo
ports
:
-
"
3000:80"
server-john
:
build
:
./application
links
:
-
redis
expose
:
-
"
3000"
environment
:
-
NAME=John
server-paul
:
app
:
build
:
./application
links
:
-
redis
expose
:
-
"
3000"
environment
:
-
NAME=Paul
server-george
:
build
:
./application
links
:
-
redis
expose
:
-
"
3000"
ports
:
-
3000:3000/tcp
environment
:
-
NAME=
George
-
NAME=
app
server-ringo
:
build
:
./application
links
:
-
redis
expose
:
-
"
3000"
environment
:
-
NAME=Ringo
redis
:
image
:
redis:alpine
...
...
@@ -61,4 +23,5 @@ services:
-
"
9091:9090"
command
:
--config.file=/etc/prometheus/prometheus.yml
volumes
:
-
./prometheus.yml:/etc/prometheus/prometheus.yml
\ No newline at end of file
-
./prometheus.yml:/etc/prometheus/prometheus.yml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
nginx.conf
deleted
100644 → 0
+
0
−
37
View file @
fee1313b
worker_processes
4
;
events
{
worker_connections
1024
;
}
http
{
server
{
listen
80
;
location
/
{
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
Host
$host
;
proxy_pass
http://nodes
;
# enable WebSockets
proxy_http_version
1.1
;
proxy_set_header
Upgrade
$http_upgrade
;
proxy_set_header
Connection
"upgrade"
;
}
}
upstream
nodes
{
# enable sticky session with either "hash" (uses the complete IP address)
hash
$remote_addr
consistent
;
# or "ip_hash" (uses the first three octets of the client IPv4 address, or the entire IPv6 address)
# ip_hash;
# or "sticky" (needs commercial subscription)
# sticky cookie srv_id expires=1h domain=.example.com path=/;
server
server-john
:
3000
;
server
server-paul
:
3000
;
server
server-george
:
3000
;
server
server-ringo
:
3000
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
prometheus.yml
deleted
100644 → 0
+
0
−
11
View file @
fee1313b
global
:
scrape_interval
:
15s
evaluation_interval
:
15s
scrape_configs
:
-
job_name
:
my-application
honor_labels
:
true
scheme
:
https
static_configs
:
-
targets
:
[
'
application:3000'
]
tls_config
:
insecure_skip_verify
:
true
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment