Add portal, aaf, onap charts and integrate with ric common template
[it/dep.git] / ric-aux / 80-Auxiliary-Functions / helm / portal / charts / portal-cassandra / resources / config / cassandra / docker-entrypoint-initdb.d / portal_single.cql
diff --git a/ric-aux/80-Auxiliary-Functions/helm/portal/charts/portal-cassandra/resources/config/cassandra/docker-entrypoint-initdb.d/portal_single.cql b/ric-aux/80-Auxiliary-Functions/helm/portal/charts/portal-cassandra/resources/config/cassandra/docker-entrypoint-initdb.d/portal_single.cql
new file mode 100755 (executable)
index 0000000..7827727
--- /dev/null
@@ -0,0 +1,145 @@
+// Copyright © 2018 Amdocs, Bell Canada, AT&T\r
+//\r
+// Licensed under the Apache License, Version 2.0 (the "License");\r
+// you may not use this file except in compliance with the License.\r
+// You may obtain a copy of the License at\r
+//\r
+//       http://www.apache.org/licenses/LICENSE-2.0\r
+//\r
+// Unless required by applicable law or agreed to in writing, software\r
+// distributed under the License is distributed on an "AS IS" BASIS,\r
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+// See the License for the specific language governing permissions and\r
+// limitations under the License.\r
+\r
+\r
+CREATE KEYSPACE IF NOT EXISTS admin\r
+    WITH REPLICATION = {\r
+        'class' : 'SimpleStrategy',\r
+        'replication_factor': 1\r
+    }\r
+    AND DURABLE_WRITES = true;\r
\r
+CREATE TABLE IF NOT EXISTS admin.keyspace_master (\r
+    uuid uuid,\r
+    keyspace_name text,\r
+    application_name text,\r
+    is_api boolean,\r
+    password text,\r
+    username text,\r
+    is_aaf boolean,\r
+    PRIMARY KEY (uuid)\r
+);\r
+\r
+\r
+CREATE KEYSPACE IF NOT EXISTS portal\r
+    WITH REPLICATION = {\r
+        'class' : 'SimpleStrategy',\r
+        'replication_factor': 1\r
+    }\r
+    AND DURABLE_WRITES = true;\r
+\r
+\r
+CREATE TABLE portal.spring_session (\r
+    primary_id text PRIMARY KEY,\r
+    creation_time text,\r
+    expiry_time text,\r
+    last_access_time text,\r
+    max_inactive_interval text,\r
+    principal_name text,\r
+    session_id text,\r
+    vector_ts text\r
+) WITH bloom_filter_fp_chance = 0.01\r
+    AND caching = {'keys': 'ALL', 'rows_per_partition': '10'}\r
+    AND comment = ''\r
+    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}\r
+    AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}\r
+    AND crc_check_chance = 1.0\r
+    AND dclocal_read_repair_chance = 0.1\r
+    AND default_time_to_live = 0\r
+    AND gc_grace_seconds = 864000\r
+    AND max_index_interval = 2048\r
+    AND memtable_flush_period_in_ms = 0\r
+    AND min_index_interval = 128\r
+    AND read_repair_chance = 0.0\r
+    AND speculative_retry = '99PERCENTILE';\r
+\r
+\r
+CREATE TABLE portal.spring_session_attributes (\r
+    primary_id text,\r
+    attribute_name text,\r
+    attribute_bytes blob,\r
+    vector_ts text,\r
+    PRIMARY KEY (primary_id, attribute_name)\r
+) WITH CLUSTERING ORDER BY (attribute_name ASC)\r
+    AND bloom_filter_fp_chance = 0.01\r
+    AND caching = {'keys': 'ALL', 'rows_per_partition': '1'}\r
+    AND comment = ''\r
+    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}\r
+    AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}\r
+    AND crc_check_chance = 1.0\r
+    AND dclocal_read_repair_chance = 0.1\r
+    AND default_time_to_live = 0\r
+    AND gc_grace_seconds = 864000\r
+    AND max_index_interval = 2048\r
+    AND memtable_flush_period_in_ms = 0\r
+    AND min_index_interval = 128\r
+    AND read_repair_chance = 0.0\r
+    AND speculative_retry = '99PERCENTILE';\r
+    \r
+\r
+\r
+CREATE KEYSPACE IF NOT EXISTS portalsdk\r
+    WITH REPLICATION = {\r
+        'class' : 'SimpleStrategy',\r
+        'replication_factor': 1\r
+    }\r
+    AND DURABLE_WRITES = true;\r
+\r
+\r
+CREATE TABLE portalsdk.spring_session (\r
+    primary_id text PRIMARY KEY,\r
+    creation_time text,\r
+    expiry_time text,\r
+    last_access_time text,\r
+    max_inactive_interval text,\r
+    principal_name text,\r
+    session_id text,\r
+    vector_ts text\r
+) WITH bloom_filter_fp_chance = 0.01\r
+    AND caching = {'keys': 'ALL', 'rows_per_partition': '10'}\r
+    AND comment = ''\r
+    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}\r
+    AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}\r
+    AND crc_check_chance = 1.0\r
+    AND dclocal_read_repair_chance = 0.1\r
+    AND default_time_to_live = 0\r
+    AND gc_grace_seconds = 864000\r
+    AND max_index_interval = 2048\r
+    AND memtable_flush_period_in_ms = 0\r
+    AND min_index_interval = 128\r
+    AND read_repair_chance = 0.0\r
+    AND speculative_retry = '99PERCENTILE';\r
+\r
+\r
+CREATE TABLE portalsdk.spring_session_attributes (\r
+    primary_id text,\r
+    attribute_name text,\r
+    attribute_bytes blob,\r
+    vector_ts text,\r
+    PRIMARY KEY (primary_id, attribute_name)\r
+) WITH CLUSTERING ORDER BY (attribute_name ASC)\r
+    AND bloom_filter_fp_chance = 0.01\r
+    AND caching = {'keys': 'ALL', 'rows_per_partition': '1'}\r
+    AND comment = ''\r
+    AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}\r
+    AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}\r
+    AND crc_check_chance = 1.0\r
+    AND dclocal_read_repair_chance = 0.1\r
+    AND default_time_to_live = 0\r
+    AND gc_grace_seconds = 864000\r
+    AND max_index_interval = 2048\r
+    AND memtable_flush_period_in_ms = 0\r
+    AND min_index_interval = 128\r
+    AND read_repair_chance = 0.0\r
+    AND speculative_retry = '99PERCENTILE';
\ No newline at end of file