You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GITHUB_TOKEN=# The parameter is required for DATASET_LOAD_TYPE=github . Your personalized GitHub Token. You can get a Token in your GitHub profile settings, it's free, instructions at https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
2.Run the environment, this will run the three databases locally. Check docker-compose.yaml and add the correct versions or configurations if necessary.
42
+
2.Copy or rename `.env.example` to `.env`. Set the parameters in the .env file.
41
43
42
-
`docker compose up -d`
44
+
3. Run the environment.
45
+
46
+
```
47
+
docker compose up -d
48
+
```
49
+
50
+
docker-compose launches three databases (MySQL, Postgres, MongoDB) and the Demo application.
51
+
52
+
4. Launch the application at `localhost:3000` in your browser.
53
+
54
+
5. Open the Settings tab and create connections to the databases you want to load. Connection options are available in docker-compose.yaml
55
+
56
+
- MySQL: `root:password@tcp(mysql:3306)/dataset`
43
57
44
-
3. Copy or rename `.env.example` to `.env`. Set the parameters in the .env file
-`GITHUB_TOKEN` - Your personalized GitHub Token. If left empty, the limit is 60 API requests per hour, which is enough for a test run. If you add token then 5000 requests per hour. You can get a Token in your GitHub profile settings, it's free, instructions at [the link](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
62
+
6. On the Settings tab, for each database, load the test dataset by clicking the “Create schema” and “Import Dataset” buttons. By default a small dataset from a CSV file (26 repos and 4600 PRs) will be imported, to import the full dataset you need to add a GitHub Token to the .env file and change the import type to github.
49
63
50
-
4. Run the Control Panel script
64
+
7. Turn on the Enable Load setting and open the Load Generator Control Panel tab.
65
+
66
+
8. Change load adjustments and check the results in PMM at `localhost:8081`
67
+
68
+
## Development environment
69
+
70
+
0. Run the environment.
71
+
72
+
```
73
+
docker compose -f docker-compose-dev.yaml up -d
74
+
```
75
+
76
+
1. Run the Control Panel script
51
77
52
78
`go run cmd/web/main.go`
53
79
54
80
Launch the control panel in your browser (localhost:3000).
55
81
56
-
5. Run the Dataset loader script
82
+
2. Run the Dataset loader script
57
83
58
84
`go run cmd/dataset/main.go`
59
85
60
-
6. Run the Load Generator script
86
+
3. Run the Load Generator script
61
87
62
88
`go run cmd/load/main.go`
63
89
@@ -85,7 +111,9 @@ Create databases if you don't have any.
0 commit comments