
This article is telling you how to share single SAP HANA Cloud instance to multiple subaccounts and create HDI container from each subaccount. I am using SAP Cloud Application Programming Model (CAP) Node.js for this article.
When I am planning SAP BTP project system architecture, I am following account model and preparing three subaccounts (development, test, production). At that time, I feel how can I reduce cost of subscription to each subaccount, especially for development environment.
Normally, persistence service is expensive than others. In my use cases, SAP HANA Cloud is the one. And I seldom use minimum data volume in development environment, because development environment is just for checking deployment to Cloud Foundry environment. I am developing CAP app locally with SQLite database e.g.
I think if I can share SAP HANA Cloud instance in test subaccount with development subaccount, I can save some money. I would like to share this tips, and it is helpful for early stage users like me.
As prerequisite, I already subscribed to SAP HANA Cloud `hana-cloud-tools` plan in my test environment.
I go to SAP HANA Cloud Central from cockpit, and find my HANA Cloud database instance. Click three dots (...) button and select `Manage Configuration` menu. In configuration page, click Instance Mapping tab.
Click add mapping button and input Cloud Foundry org and space ID (space is optional). Instance mapping is only available for instances hosted in the same BTP region. In my use case, test subaccount (first entry) and development subaccount (second entry).
Add Cloud Foundry Org/Space
In the SAP HANA Cloud Central, copy Instance ID of database (for example 584fxxxx-xxxx-xxxx-xxxx-xxxxxxxx482b). This is used at next step.
resources
- type: org.cloudfoundry.managed-service
name: MyProject-service-db
parameters:
service: hana
service-plan: hdi-shared
config:
database_id: 584fxxxx-xxxx-xxxx-xxxx-xxxxxxxx482b
ID: MyProject.hdi
_schema-version: 3.2.0
version: 1.0.0
extends: MyProject
resources:
- name: MyProject-service-db
parameters:
config:
database_id: 584fxxxx-xxxx-xxxx-xxxx-xxxxxxxx482b
In the end, I can share SAP HANA Cloud database instance to two subaccounts.
Again, sharing with another environment is effective if my data volume in development environment is quite low compared with minimum subscription volume (32GB). If you want to apply this tips, please measure your data volume beforehand.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
17 | |
15 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |