Datei: StressTests/StressTest/appsettings.json

Last Commit (ab290a4)
1 {
2 ··// All values can be overridden on the command line, e.g.
3 ··//·· dotnet run -- --provider Postgre --threads 100 --iterations 20
4 ··// or with environment variables with the prefix NDOSTRESS_, e.g.
5 ··//·· NDOSTRESS_ConnectionStrings__Postgre="Host=db;Database=ndostress;Username=ndo;Password=secret"
6 ··"StressTest": {
7 ····// Name of the NDO provider: Sqlite, SqlServer, MySql, MySqlConnector, Postgre
8 "Provider": "SqlServer",
9 ····// Overrides the connection string from the ConnectionStrings section
10 ····"ConnectionString": "",
11 ····// Number of concurrent workers. Each worker uses its own PersistenceManager instances.
12 ····"Threads": 32,
13 ····// Number of iterations per worker (create, change, verify, delete). Ignored if DurationSeconds > 0.
14 ····"Iterations": 25,
15 ····// If > 0, the workers run until the time is elapsed.
16 ····"DurationSeconds": 0,
17 ····"LinesPerOrder": 5,
18 ····"TagCount": 8,
19 ····// Optimistic or Pessimistic
20 ····"TransactionMode": "Optimistic",
21 ····// ReadCommitted, Serializable, ... Empty: NDO default (ReadCommitted), for Sqlite: Serializable
22 ····"IsolationLevel": null,
23 ····// true: all PersistenceManagers share one NDOMapping object, false: each PersistenceManager loads its own mapping
24 ····"SharedMapping": true,
25 ····// Drops and creates the tables before the test
26 ····"RecreateSchema": true,
27 ····// Drops the tables after a successful test
28 ····"DropSchemaAfterTest": false,
29 ····"StopOnFirstError": false,
30 ····// Retries of a step, if the database chose the transaction as deadlock victim. 0: no retries
31 ····"DeadlockRetries": 5,
32 ····"MaxErrorsToPrint": 20,
33 ····"ProgressIntervalSeconds": 5
34 ··},
35 ··"ConnectionStrings": {
36 ····"Sqlite": "Data Source=ndo-stresstest.db;Journal Mode=Wal;Default Timeout=60;Pooling=True",
37 ····"SqlServer": "Data Source=localhost;Initial Catalog=NDOStressTest;Integrated Security=True;TrustServerCertificate=True;Max Pool Size=500",
38 "MySql": "Server=localhost;Database=ndostresstest;Uid=root;Pwd=;Max Pool Size=500",
39 "MySqlConnector": "Server=localhost;Database=ndostresstest;Uid=root;Pwd=;Maximum Pool Size=500",
40 "Postgre": "Host=localhost;Database=ndostresstest;Username=postgres;Password=postgres;Maximum Pool Size=500"
41 ··}
42 }
43
New Commit (f5f4fd8)
1 {
2 ··// All values can be overridden on the command line, e.g.
3 ··//·· dotnet run -- --provider Postgre --threads 100 --iterations 20
4 ··// or with environment variables with the prefix NDOSTRESS_, e.g.
5 ··//·· NDOSTRESS_ConnectionStrings__Postgre="Host=db;Database=ndostress;Username=ndo;Password=secret"
6 ··"StressTest": {
7 ····// Name of the NDO provider: Sqlite, SqlServer, MySql, MySqlConnector, Postgre
8 "Provider": "Postgre",
9 ····// Overrides the connection string from the ConnectionStrings section
10 ····"ConnectionString": "",
11 ····// Number of concurrent workers. Each worker uses its own PersistenceManager instances.
12 ····"Threads": 32,
13 ····// Number of iterations per worker (create, change, verify, delete). Ignored if DurationSeconds > 0.
14 ····"Iterations": 25,
15 ····// If > 0, the workers run until the time is elapsed.
16 ····"DurationSeconds": 0,
17 ····"LinesPerOrder": 5,
18 ····"TagCount": 8,
19 ····// Optimistic or Pessimistic
20 ····"TransactionMode": "Optimistic",
21 ····// ReadCommitted, Serializable, ... Empty: NDO default (ReadCommitted), for Sqlite: Serializable
22 ····"IsolationLevel": null,
23 ····// true: all PersistenceManagers share one NDOMapping object, false: each PersistenceManager loads its own mapping
24 ····"SharedMapping": true,
25 ····// Drops and creates the tables before the test
26 ····"RecreateSchema": true,
27 ····// Drops the tables after a successful test
28 ····"DropSchemaAfterTest": false,
29 ····"StopOnFirstError": false,
30 ····// Retries of a step, if the database chose the transaction as deadlock victim. 0: no retries
31 ····"DeadlockRetries": 5,
32 ····"MaxErrorsToPrint": 20,
33 ····"ProgressIntervalSeconds": 5
34 ··},
35 ··"ConnectionStrings": {
36 ····"Sqlite": "Data Source=ndo-stresstest.db;Journal Mode=Wal;Default Timeout=60;Pooling=True",
37 ····"SqlServer": "Data Source=localhost;Initial Catalog=NDOStressTest;Integrated Security=True;TrustServerCertificate=True;Max Pool Size=500",
38 "MySql": "Server=localhost;Database=ndostresstest;Uid=stresstest;Pwd=Ag#IpVuq!HoMe8Qaf;Max Pool Size=500",
39 "MySqlConnector": "Server=localhost;Database=ndostresstest;Uid=stresstest;Pwd=Ag#IpVuq!HoMe8Qaf;Maximum Pool Size=500",
40 "Postgre": "Host=localhost;Database=ndostresstest;Username=postgres;Password=abundance;Maximum Pool Size=500"
41 ··}
42 }
43