From 6951345b8d02797779bacec4c32323e1730df5e5 Mon Sep 17 00:00:00 2001
From: GGabi Choose the same AWS Region as your AWS Finspace KxEnvirnment Give your bucket a name
- Unselect the
- Leave all other settings as the default Copy the ARN of your S3 buckets in the console by navigating to your S3 bucket, selecting
- Edit the Access policy of both S3 buckets with the JSON document: It is split into two modules, one for the environment and one for the clusters. This makes the directory more organised and cluster deployments easier to manage. The cluster module is still dependent on the environment module as it will import some variables from here that are needed for cluster creation.
- This Terraform setup is designed to deploy and manage a Managed kdb Insights environment running a TorQ bundle. To create a scaling group through the AWS Console, select your kdb environment and navigate to the
-
- Click the
- To create a shared volume through the AWS Console, select your kdb environment and navigate to the
- Click the
-
- If you plan to run your HDB cluster on a scaling group this step is required. Otherwise, this step is optional. To create a scaling group through the AWS Console, select your kdb environment and navigate to the
- Select the database that has the changesets appropriate for your use case.
@@ -775,7 +775,7 @@
-
-
- Click To create a cluster, first select your kdb environment:
- Then select the
- Select the execution role for the IAM user previously created. The user for all 6 clusters should be the same. This is so that each cluster has the correct permissions.
- Create a
+
Block all public access box
+
Edit the access policy
Properties
+
Terraform
+
Scaling Groups
Kdb scaling groups tab:
+
+
Create kdb scaling group buttonScaling Groups
Create kdb scaling group button when you are happy with the settings.
+
Shared Volume
Volumes tab:
+
Create volume buttonShared Volume
+
@@ -758,7 +758,7 @@
Shared Volume
Create volume button when you are happy with the settings
+
(Optional) Dataview
@@ -766,7 +766,7 @@ (Optional) Dataview
Databases tab:
+
(Optional) Dataview
Dataview tab and click the Create dataview button
+
@@ -783,7 +783,7 @@
(Optional) Dataview
+
@@ -795,7 +795,7 @@
(Optional) Dataview
Segment configuration - optional choose the root path for your Database path and the Volume you created in the prior step
+
Create dataview when you are happy with the settingsCreating TorQ Clusters
+
Clusters tab, then either of the Create cluster buttons:
+
Prerequisites
@@ -856,25 +856,25 @@ Discovery Cluster
+
Select Run on kdb scaling group for the Cluster running option.
-
+
Choose your group in the dropdown in the Kdb scaling group details section.
-
+
In the Node details section, set the Memory reservation per node to the minimum allowed (6 MiB) and leave the rest blank.
-
+
-
+
-
+
This specified initialization script and the command line arguments will set up the necessary environment for your cluster.
-
+
Select your previously created VPC ID, Subnets, and Security Groups (we can use the readily available default), then select Next to go to the next page.
-
+
Leave everything as blank and click Next to move on to the next page.
-
+
Create cluster.
procname, added during the next stage of cluster creation - This is due to process connections requiring the cluster name, which is not visible from within the process, but procname is. Our suggestion is to use the process type (proctype) with a number e.g. tp1.
-
+
Select Run on kdb scaling group for the Cluster running option.
-
+
Choose your group in the dropdown in the Kdb scaling group details section.
-
+
Leave Tags as empty and select Next to go to the next page.
-
+
This specified initialization script and the command line arguments will set up the necessary environment for your cluster.
-
+
Select your volume, then select Next to go to the next page.
-
+
procname, added during the next stage of cluster creation - This is due to process connections requiring the cluster name, which is not visible from within the process, but procname is. Our suggestion is to use the process type (proctype) with a number e.g. rdb1.
-
+
Select Run on kdb scaling group for the Cluster running option.
-
+
Choose your group in the dropdown in the Kdb scaling group details section.
-
+
Leave Tags as empty and select Next to go to the next page.
-
+
This specified initialization script and the command line arguments will set up the necessary environment for your cluster.
-
+
Select Next to go to the next page.
-
+
procname, added during the next stage of cluster creation - This is due to process connections requiring the cluster name, which is not visible from within the process, but procname is. Our suggestion is to use the process type (proctype) with a number e.g. hdb1.
-
+
Select Run on kdb scaling group for the Cluster running option.
-
+
Choose your group in the dropdown in the Kdb scaling group details section.
-
+
Leave Tags as empty and select Next to go to the next page.
-
+
This specified initialization script and the command line arguments will set up the necessary environment for your cluster.
-
+
-
+
procname, added during the next stage of cluster creation - This is due to process connections requiring the cluster name, which is not visible from within the process, but procname is. Our suggestion is to use the process type (proctype) with a number e.g. gateway1.
-
+
Select Run on kdb scaling group for the Cluster running option.
-
+
Choose your group in the dropdown in the Kdb scaling group details section.
-
+
Leave Tags as empty and select Next to go to the next page.
-
+
This specified initialization script and the command line arguments will set up the necessary environment for your cluster.
-
+
Choose a name for your cluster. As this is a sample feed and not a "production" intended process, please name it feed1.
-
+
Select Run on kdb scaling group for the Cluster running option.
-
+
Choose your group in the dropdown in the Kdb scaling group details section.
-
+
In the Node details section, set the Memory reservation per node to the minimum allowed (6 MiB) and leave the rest blank.
-
+
This specified initialization script and the command line arguments will set up the necessary environment for your cluster.
-
+
Leave everything as blank and click Next to move on to the next page.
-
+
On cluster creation, most errors will result in your cluster going to a Create failed state.
-
+
If that is the case you should:
@@ -1421,7 +1421,7 @@Click the cluster name in the Clusters section of your environment.
-
+
If you click the LogStream for an individual log it will take you to AWS CloudWatch where you can filter the messages for keywords or for messages in a certain time window.
-
+
Navigate to the EC2 service.
-
+
Select Launch instance to create a new EC2 instance.
-
+
Most options here can be left as their defaults. Here are the ones that need selected/changing:
@@ -777,88 +777,88 @@Select "Windows" from the Quick Start options.
-
+
We need to create a new key pair: Select Create new key pair.
-
+
Enter a name for your key pair, leave the key pair type as RSA and the file format as .pem. This will download a key file to you PC which you will use to connect to the instance.
-
+
The network should be in the same VPC as your cluster. Select Create security group that allows Remote Desktop Protocol (RDP) connections from anywhere.
- This is only for the purposes of the MVP. For customising see this page on security groups.
-
+
Now we need to add the security group of your cluster to your EC2.
Navigate to EC2 service.
-
+
Select Instances (running).
-
+
Open your EC2 Instance.
-
+
Select Actions -> Security -> Change security groups.
-
+
Search and select the security group that is on your clusters, select Add security group then Save.
-
+
You should now have two security groups, one from the launch wizard, and the one you added manually that is also attached to your clusters.
-
+
Open your EC2 Instance.
-
+
Select Connect.
-
+
This only needs to be done once. Once you have this password you can skip this step.
Select Get password.
-
+
Upload the .pem that was saved to you PC earlier (alternativly you can just paste the contents of this file in the text box).
-
+
This will return the value of your password. Keep a note of this password as you will need it to connect your EC2.
Download the remote desktop file.
-
+
Run this file and enter the password you recieved above when promted. You should now be connected to the Windows remote desktop.
diff --git a/09-clusterconnectionstring/index.html b/09-clusterconnectionstring/index.html index ccd17b3..a8601b7 100644 --- a/09-clusterconnectionstring/index.html +++ b/09-clusterconnectionstring/index.html @@ -835,23 +835,23 @@In your kdb environment, go to the Users tab and select Add user.
-
+
Give it a name and select the IAM role you created above.
-
+
On the Users tab, copy the links for IAM role and User ARN for the user.
-
+
Navigate to CloudShell.
-
+
Replace <ARN_COPIED_FROM_ABOVE> with the IAM Role copied above and run the following (this will not return anything):
This lets you assume the role that you have just created by taking the values returned from the aws sts assume-role command and setting them in your AWS_ACCESS_KEY_ID, e.t.c. environment variables. NOTE - if you need to switch back to your own user within the CloudShell, you will need to run unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN to unset these environment variables.
Copy your kdb Environment ID:
-
+
Replace <YOUR_KDB_ENVIRONMENT_ID> with your kdb environment ID, <USER_ARN_COPIED_ABOVE> with the User ARN, and <NAME_OF_CLUSTER> with the name of the cluster you want to connect to. Run the following:
This will return a large connection string which can be used to connect to your cluster.
-
+
Navigate to the TimeStored website and download the relavent version (usually x64).
-
+
Download the Microsoft C++ 2010 service pack (there is a specific DLL from this that you need that is usually installed on Windows machines).
-
+
Select the relevant version (usually x64).**
-
+
Run the file that was just downloaded.
Search for ‘Edit Environment variables’ and add SSL_VERIFY_SERVER=NO as one of them.
-
+
-
+
-
+
Open qStudio, right-click on Servers in the top left corner and select Add Server.
-
+
You will then see a pop-up showing the server properties. This is where you will add the information from the connection string (details below in the next step).
-
+
Follow the step in our Generate Connection String section to get a fresh connection string. The generated connection string provides you with everything you need to fill the boxes above. See the below connection string for an example:
-
+
The required fields in the Server Properties screen are contained within the connection string and are colon separated. Here,
@@ -643,7 +643,7 @@Username: david-finspace
Password: Host=vpce-063d07d253dde398d-19p5nh4w.vpce-svc-0b408455b16d79292.us-west-2.vpce.amazonaws.com&Port=443&User=david-finspace&Action=finspace%3AConnectKxCluster&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEDUaCXVzLXdlc3QtMiJGMEQCIFOmCCIAE5hyh0obtgV8TeS9jCglbxFPEossH5f4vRhrAiAIaxSHF%2FQhjqACSlmwlLTNJBvx658bQwyiH9LVz20ehSr4AgguEAIaDDc2NjAxMjI4NjAwMyIMl3TMLJjQytFtFLaiKtUCbJrjypNOC5U8GwttcBfln2SV%2FJclct%2FmeDtnUCUcVB3bzcCUOpGQFXUR%2FtonWVO0ZO1SUu%2Bna%2Bs0l0UfMu7K7qDOQhszg1%2Fxdblx0TRi70GVunATeJlpppyQeZNUk9RHSOvGPCN8VKGBJmisbeo3bJb7MvVLak1lgVdLn%2FxUIS0uTfA62PbzU6LPE1nj85bupgLrvAMlSwvZMy3pVXJaN%2BBvk0mulmCvIYfqlqL%2FcjvWbOMQdyXsdAYCO4TRpA7I38Jmfr9h1oee2JVvVMCu41yRQhbAqtqgvNwrhgSyOQASAJSVGiIPHiXyGz5KefntOfq1zADleUrUg0Nvh6EPFj%2FavNsHZyBSapvUVVsx%2FA9aI2aHeg5P%2FtCifq%2Bnxg5vyKSX4GcB7P40pKs3Ymeb3yAUllN2tJ5VXlx7SI3p8jfTB8k72BeOzu%2BLbWs5gtb%2BlZG1cSQwzKSHrwY6wAEpzwyEjjuh50PM6OZgRBNgBEOiqLaTHqjBv7VHcjsF5FnpJqZ2AhBtQXXkFiItA%2FSZ7B0aGbL0sYJ8v7WZZIMtAvg4e0ve9VBYXf4hnl5i82T5EJfAy727E9e25Wwb%2FILZAeOjdTY0IhcgvWlLCeBJNEHEMO8h8yupkLfFQHlNvF14wrH1U8bSd934M8k%2F22%2FDTrZFlVQXe%2FeLYt%2FxOBEHfHWiMH51v2IDv39%2B%2B7%2FGq3XmrcNymPQQ0HcoJEK%2BTjg%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240301T130412Z&X-Amz-SignedHeaders=host&X-Amz-Expires=900&X-Amz-Credential=ASIA3EWPD4QZXLHMX4GY%2F20240301%2Fus-west-2%2Ffinspace-apricot%2Faws4_request&X-Amz-Signature=c134f0dc1f0cba738c0bf8547c9ca8702593ea9e9b89ee2d17892fd379524d30
-
+
For queries to be ran through the gateway, we must update some preferences on qStudio. Go to Settings -> Preferences -> Connections tab.
We will need to uncheck the box labelled Wrap query sent to server.
-
+
The queries below should then all run successfully!
-
+
Example queries are listed below:
diff --git a/14-takingitdown/index.html b/14-takingitdown/index.html index 6a6aa8a..9201e05 100644 --- a/14-takingitdown/index.html +++ b/14-takingitdown/index.html @@ -752,12 +752,12 @@From your Kdb environment select the cluster you want to delete and select Delete.
-
+
On the confirmation dialog box, enter confirm then select Delete.
-
+
Databases tab. Then select the database your dataview is associated with:
-
+
Delete button
-
+
Delete button.
-
+
Volumes tab. Then select the volume you like to delete and click Delete
-
+
Delete button.
-
+
Kdb scaling groups tab. Then select the scaling group you like to delete and click Delete
-
+
Delete button.
-
+
From your Kdb environment select the Databases tab, select the database you want to delete and select Delete.
-
+
On the confirmation dialog box, enter confirm then select Delete.
-
+