mirror of
https://github.com/corda/corda.git
synced 2024-12-26 16:11:12 +00:00
perftest scripts (#172)
* SQL scripts to set up SQL server for perftest cluster * Fix notary name in jmx files
This commit is contained in:
parent
f469b30c64
commit
037673abe4
7
perftestcordapp/src/main/sql/01_create_logins.sql
Normal file
7
perftestcordapp/src/main/sql/01_create_logins.sql
Normal file
@ -0,0 +1,7 @@
|
||||
USE master
|
||||
|
||||
CREATE LOGIN perfnode1 with PASSWORD = 'yourStrong(!)Password';
|
||||
CREATE LOGIN perfnode2 with PASSWORD = 'yourStrong(!)Password';
|
||||
CREATE LOGIN perfnode3 with PASSWORD = 'yourStrong(!)Password';
|
||||
CREATE LOGIN perfnode4 with PASSWORD = 'yourStrong(!)Password';
|
||||
CREATE LOGIN perfnotary with PASSWORD = 'yourStrong(!)Password';
|
26
perftestcordapp/src/main/sql/02_setup_db.sql
Normal file
26
perftestcordapp/src/main/sql/02_setup_db.sql
Normal file
@ -0,0 +1,26 @@
|
||||
USE perftesting
|
||||
|
||||
IF NOT EXISTS (SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'perfnode1') EXEC('CREATE SCHEMA perfnode1');
|
||||
IF NOT EXISTS (SELECT * FROM sys.sysusers WHERE name='perfnode1') CREATE USER perfnode1 FOR LOGIN perfnode1 WITH DEFAULT_SCHEMA = perfnode1;
|
||||
GRANT ALTER, DELETE, EXECUTE, INSERT, REFERENCES, SELECT, UPDATE, VIEW DEFINITION ON SCHEMA::perfnode1 TO perfnode1;
|
||||
GRANT CREATE TABLE, CREATE PROCEDURE, CREATE FUNCTION, CREATE VIEW TO perfnode1;
|
||||
|
||||
IF NOT EXISTS (SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'perfnode2') EXEC('CREATE SCHEMA perfnode2');
|
||||
IF NOT EXISTS (SELECT * FROM sys.sysusers WHERE name='perfnode2') CREATE USER perfnode2 FOR LOGIN perfnode2 WITH DEFAULT_SCHEMA = perfnode2;
|
||||
GRANT ALTER, DELETE, EXECUTE, INSERT, REFERENCES, SELECT, UPDATE, VIEW DEFINITION ON SCHEMA::perfnode2 TO perfnode2;
|
||||
GRANT CREATE TABLE, CREATE PROCEDURE, CREATE FUNCTION, CREATE VIEW TO perfnode2;
|
||||
|
||||
IF NOT EXISTS (SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'perfnode3') EXEC('CREATE SCHEMA perfnode3');
|
||||
IF NOT EXISTS (SELECT * FROM sys.sysusers WHERE name='perfnode3') CREATE USER perfnode3 FOR LOGIN perfnode3 WITH DEFAULT_SCHEMA = perfnode3;
|
||||
GRANT ALTER, DELETE, EXECUTE, INSERT, REFERENCES, SELECT, UPDATE, VIEW DEFINITION ON SCHEMA::perfnode3 TO perfnode3;
|
||||
GRANT CREATE TABLE, CREATE PROCEDURE, CREATE FUNCTION, CREATE VIEW TO perfnode3;
|
||||
|
||||
IF NOT EXISTS (SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'perfnode4') EXEC('CREATE SCHEMA perfnode4');
|
||||
IF NOT EXISTS (SELECT * FROM sys.sysusers WHERE name='perfnode4') CREATE USER perfnode4 FOR LOGIN perfnode4 WITH DEFAULT_SCHEMA = perfnode4;
|
||||
GRANT ALTER, DELETE, EXECUTE, INSERT, REFERENCES, SELECT, UPDATE, VIEW DEFINITION ON SCHEMA::perfnode4 TO perfnode4;
|
||||
GRANT CREATE TABLE, CREATE PROCEDURE, CREATE FUNCTION, CREATE VIEW TO perfnode4;
|
||||
|
||||
IF NOT EXISTS (SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'perfnotary') EXEC('CREATE SCHEMA perfnotary');
|
||||
IF NOT EXISTS (SELECT * FROM sys.sysusers WHERE name='perfnotary') CREATE USER perfnotary FOR LOGIN perfnotary WITH DEFAULT_SCHEMA = perfnotary;
|
||||
GRANT ALTER, DELETE, EXECUTE, INSERT, REFERENCES, SELECT, UPDATE, VIEW DEFINITION ON SCHEMA::perfnotary TO perfnotary;
|
||||
GRANT CREATE TABLE, CREATE PROCEDURE, CREATE FUNCTION, CREATE VIEW TO perfnotary;
|
@ -51,7 +51,7 @@
|
||||
</elementProp>
|
||||
<elementProp name="notaryName" elementType="Argument">
|
||||
<stringProp name="Argument.name">notaryName</stringProp>
|
||||
<stringProp name="Argument.value">O=Perf-10.155.0.8,OU=Corda,L=London,C=GB,CN=corda.node.simple</stringProp>
|
||||
<stringProp name="Argument.value">O=Perf-10.155.0.8,OU=Corda,L=London,C=GB,CN=corda.notary.simple</stringProp>
|
||||
<stringProp name="Argument.metadata">=</stringProp>
|
||||
</elementProp>
|
||||
</collectionProp>
|
||||
|
@ -51,7 +51,7 @@
|
||||
</elementProp>
|
||||
<elementProp name="notaryName" elementType="Argument">
|
||||
<stringProp name="Argument.name">notaryName</stringProp>
|
||||
<stringProp name="Argument.value">O=Perf-10.155.0.8,OU=Corda,L=London,C=GB,CN=corda.node.simple</stringProp>
|
||||
<stringProp name="Argument.value">O=Perf-10.155.0.8,OU=Corda,L=London,C=GB,CN=corda.notary.simple</stringProp>
|
||||
<stringProp name="Argument.metadata">=</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="otherPartyName" elementType="Argument">
|
||||
|
Loading…
Reference in New Issue
Block a user