perftest scripts (#172)

* SQL scripts to set up SQL server for perftest cluster

* Fix notary name in jmx files
This commit is contained in:
Christian Sailer 2017-12-15 16:15:11 +00:00 committed by GitHub
parent f469b30c64
commit 037673abe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 2 deletions

View 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';

View 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;

View File

@ -51,7 +51,7 @@
</elementProp> </elementProp>
<elementProp name="notaryName" elementType="Argument"> <elementProp name="notaryName" elementType="Argument">
<stringProp name="Argument.name">notaryName</stringProp> <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> <stringProp name="Argument.metadata">=</stringProp>
</elementProp> </elementProp>
</collectionProp> </collectionProp>

View File

@ -51,7 +51,7 @@
</elementProp> </elementProp>
<elementProp name="notaryName" elementType="Argument"> <elementProp name="notaryName" elementType="Argument">
<stringProp name="Argument.name">notaryName</stringProp> <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> <stringProp name="Argument.metadata">=</stringProp>
</elementProp> </elementProp>
<elementProp name="otherPartyName" elementType="Argument"> <elementProp name="otherPartyName" elementType="Argument">