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
@@ -46,10 +46,6 @@ The application connects to and generates load on MySQL, PostgreSQL, and MongoDB
46
46
47
47
Open the folder with the repository `cd github-stat/`
48
48
49
-
<!-- 2. Copy or rename `.env.example` (already provided in this repo) to `.env`. Set the parameters in the `.env` file.
50
-
51
-
> **Note:** The `.env` file contains essential configuration settings for the application. Adjust these settings based on your environment to ensure proper functionality. -->
52
-
53
49
2. Run the environment. Two options:
54
50
55
51
- Demo application only. Suitable for connecting to your own databases e.g. created with Percona Everest, Pecona Operators or other databases in the cloud or locally.
@@ -58,13 +54,13 @@ The application connects to and generates load on MySQL, PostgreSQL, and MongoDB
58
54
docker compose up -d
59
55
```
60
56
61
-
- Demo application with test databases (MySQL, MongoDB, Postgres) and PMM.
57
+
- Demo application with test databases (MySQL 8.4, MongoDB 8, Postgres 17) and Percona Monitoring and Management (PMM).
62
58
63
59
```bash
64
-
dockercompose -f docker-compose-full.yaml up -d
60
+
docker-compose -p demo-app -f docker/full.yaml up -d
65
61
```
66
62
67
-
> **Note:** We recommend looking at the docker-compose.yaml files so you can know which containers are running and with what settings. You can always change the settings.
63
+
> **Note:** We recommend looking at the docker-compose files so you can know which containers are running and with what settings. You can always change the settings.
68
64
69
65
> **Note:** PMM server will be available at `localhost:8080`, access `admin` / `admin` . At the first startup, it will offer to change the password, skip it or set the same password (admin).
70
66
@@ -80,8 +76,6 @@ The application connects to and generates load on MySQL, PostgreSQL, and MongoDB
If you connect to your databases, you probably know the settings to connect, if not, write to us.
@@ -104,35 +98,55 @@ The application connects to and generates load on MySQL, PostgreSQL, and MongoDB
104
98
105
99
> **Note:** You can see the queries running in the QAN section of PMM, and you can also see the source code in the internal/load files for each database type.
106
100
107
-
##Development Environment
101
+
### Additional databases
108
102
109
-
0. Run the environment:
103
+
The application can work with other compatible databases such as YugabyteDB, FerretDB or MariaDB
110
104
111
-
```bash
112
-
docker compose -f docker-compose-dev.yaml up -d
113
-
```
105
+
To start the databases use docker-compose files from the docker folder or instructions from official sites.
114
106
115
-
1. Run the Control Panel script:
107
+
Start the application if it is not already running
108
+
```bash
109
+
docker-compose -p demo-app -f docker/app.yaml up -d
110
+
```
116
111
117
-
```go
118
-
go run cmd/web/main.go
119
-
```
112
+
**YugabyteDB**
120
113
121
-
Launch the control panel at localhost:3000.
114
+
Run docker compose with the YugabyteDB database
122
115
123
-
2. Run the Dataset loader script
116
+
```bash
117
+
docker-compose -p demo-app -f docker/yugabytedb.yaml up -d
118
+
```
124
119
125
-
```go
126
-
go run cmd/dataset/main.go
127
-
```
120
+
Open the Settings tab in the Control Panel and create a connection
docker-compose -p demo-app -f docker/mariadb.yaml up -d
145
+
```
146
+
147
+
Open the Settings tab in the Control Panel and create a connection
148
+
149
+
```root:password@tcp(mariadb:3306)/dataset```
136
150
137
151
## Launching in Kubernetes
138
152
@@ -283,6 +297,74 @@ The first time you connect to MySQL and Postgres, you will need to create a sche
283
297
284
298
Have fun experimenting.
285
299
300
+
## Development Environment
301
+
302
+
0. Run the environment:
303
+
304
+
```bash
305
+
docker compose -p demo-app -f docker/dev.yaml up -d
306
+
```
307
+
308
+
This will start the Valkey required for the application services and the three databases (MySQL 8.4, MongoDB 8, Postgres 17). Edit docker/dev.yaml if you need other databases or versions.
309
+
310
+
1. Run the Control Panel script:
311
+
312
+
```go
313
+
go run cmd/web/main.go
314
+
```
315
+
316
+
Launch the control panel at localhost:3000. Open the Settings tab and add connections. The control panel is a web application, the settings are saved in Valkey.
317
+
318
+
2. Run the Dataset loader script
319
+
320
+
```go
321
+
go run cmd/dataset/main.go
322
+
```
323
+
324
+
This will start the load service. The service reads the configuration from Valkey according to the control panel and generates the load in separate Go routines.
325
+
326
+
3. Run the Dataset Loader script:
327
+
328
+
```go
329
+
go run cmd/load/main.go
330
+
```
331
+
332
+
Start PMM in your browser at `localhost:8080` (admin/admin).
333
+
334
+
## Release process of the new version
335
+
336
+
1. Test the application in a dev environment. Check the logs in the console.
337
+
338
+
2. Change the image versions for demo_app_dataset, demo_app_load, demo_app_web to the new version number in the files:
0 commit comments