- EC2 Instances
- In the
cloudfolder there are bash scripts to launch and configure the necessary EC2 instances. - The scripts with
...app...are related to the instance that will execute the application code and store its execution metrics. - The scripts with
...mdb...are related to the instance that will execute the MongoDB server, which we'll use to store the application data and execute the load tests. - The files ending with
...launch.shshould be executed first to create the instances on AWS. - The files ending with
...dns.shshould be executed second to configure the public and private DNS. - The files ending with
...config.shshould be executed last and when already logged to the instance through SSH to apply MongoDB recommended production notes. - Obs: You need to change some script variables to use it on your AWS account and region.
- In the
- MongoDB
- MongoDB has to be installed in both instances,
...app...and...mdb.... - In the instance
...mdb...MongoDB will be used to store the application's data. - In the instance
...app...MongoDB will be used to store the application's execution metrics.
- MongoDB has to be installed in both instances,
- Application configuration
- The reference values used to configure the data generation and distribution of the application can be found in
./src/references.ts. The current values in it were used during the article tests. - The MongoDB connection string and configuration used in the application execution and tests can be found in
./src/config.ts
- The reference values used to configure the data generation and distribution of the application can be found in
- Initial Scenario
- To execute the initial scenario code you need to have
Node.JSinstalled and have executednpm ion the project folder to install dependencies. - Most of the code related to the initial scenario is in the
./src/scenariofolder. - In the file
./src/scenario/index.tsyou can change which application version you want to load the initial scenario. - To run the load of the initial scenario, use the command
npm run scenario.
- To execute the initial scenario code you need to have
- Load Test
- To execute the load test code you need to have
Node.JSinstalled and have executednpm ion the project folder to install dependencies. - Most of the code related to the initial scenario is in
./src/load-testfolder. - In the file
./src/load-test/index.tsyou can change to which application version you want to load test. - To run the load of the initial scenario, use the command
npm run scenario.
- To execute the load test code you need to have
-
Notifications
You must be signed in to change notification settings - Fork 0
License
ArturGC/the-cost-of-not-knowing-mongodb
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published