-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web debugging
- Loading branch information
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Webstack monitoring | ||
|
||
Webstack monitoring involves the continuous tracking and analysis of various components within a web application's technology stack to ensure optimal performance, availability, and reliability. This comprehensive monitoring approach covers multiple layers of the webstack, including the infrastructure (servers, network), operating system, web server, database, and application code. Monitoring tools gather data on key metrics such as response times, error rates, resource utilization, and user interactions. | ||
|
||
The goal is to proactively identify issues, troubleshoot bottlenecks, and optimize the overall system for improved user experience. Effective webstack monitoring plays a crucial role in maintaining the health and performance of web applications, enabling rapid detection and resolution of issues to ensure a seamless and efficient user experience. | ||
|
||
Background Context | ||
------------------ | ||
|
||
“You cannot fix or improve what you cannot measure” is a famous saying in the Tech industry. In the age of the data-ism, monitoring how our Software systems are doing is an important thing. In this project, we will implement one of many tools to measure what is going on our servers. | ||
|
||
Web stack monitoring can be broken down into 2 categories: | ||
- Application monitoring: getting data about your running software and making sure it is behaving as expected | ||
- Server monitoring: getting data about your virtual or physical server and making sure they are not overloaded (could be CPU, memory, disk or network overload) | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# a script that fix and allow unlimited traffic/requests | ||
|
||
exec {'replace': | ||
provider => shell, | ||
command => 'sudo sed -i "s/ULIMIT=\"-n 15\"/ULIMIT=\"-n 4096\"/" /etc/default/nginx', | ||
before => Exec['restart'], | ||
} | ||
|
||
exec {'restart': | ||
provider => shell, | ||
command => 'sudo service nginx restart', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# this fix and allow user holberton with unlimited limits | ||
|
||
exec {'replace-1': | ||
provider => shell, | ||
command => 'sudo sed -i "s/nofile 5/nofile 50000/" /etc/security/limits.conf', | ||
before => Exec['replace-2'], | ||
} | ||
|
||
exec {'replace-2': | ||
provider => shell, | ||
command => 'sudo sed -i "s/nofile 4/nofile 40000/" /etc/security/limits.conf', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Web stack debugging #4 | ||
|
||
 |