In-Memory DB
In JetDeploy Console you can start a fully dedicated In-Memory database instance, based on key-value store or other pattern types. Usually these kind of services are used for caching purpose in a webapp architecture. Supported platforms are:
Redis
Create
During service creation you need to select:
Type
Choose one of the supported platform type and version
Service name
A unique service ident name. This name cannot be changed after creation. A random string is filled as initial default value
Click Next button to add few more specifications:
Storage size
Define the initial max storage capacity of the database instance
Note
Connection and authentication data (e.g. host, port, username and password) will be visible in the detail page after database creation success.
Click Next button and the database creation process will start.
Details
In the Service Detail page you can access to various information of your database:
Type
Type of your database instance (e.g. Redis)
Version
Full version of your running database instance (e.g.
7.0.5
for Redis)Status
Status of your database instance. To be fully operational it must be in
Ready
state.External Endpoint
It is the external endpoint of your database instance, reachable by your laptop, external services or apps running out of JetDeploy infrastructure.
<External-Host>
:<External-Port>
you find here can be used to connect by client utilities (redis-cli for Redis) for database administration tasks.Note
Visible only when action done
Internal Endpoint
It is the internal endpoint of your database instance, reachable by other Services or Apps you create in JetDeploy.
<Host>
:<Port>
you find here can be used as Environment variables in your App to connect to this service.Username
Admin user of the database instance.
Note
Redis has no username but only a Redis password
Password
Random generated password of the admin user.
In the Operations section, at bottom, you can view information of the tasks created by various Actions you can run on your SQL database using JetDeploy console.
Actions
Different types of Action can be executed on your instance:
Use this action when you need to connect to your instance from external, e.g. your development computer or an application or service not running in JetDeploy platform.
For security reasons we suggest you to keep external access active for a short period of time, limited to the time necessary for data migration, troubleshooting or maintenance tasks.
Use this action when you need to view logs of your instance.
Start of your instance, usually when your instance has been previously stopped.
Stop of your instance
Restart of your instance.
Request a service destroy of your instance.
Warning
Destroy
action is risky and you will lose all your data. Please be absolutely sure when run this action.
Settings
Note
JetDeploy is in closed alpha status, so at the moment to increase the Storage size after service creation you need to open a Support Request
Usage examples
Redis
redis-cli
utilityFirst of all you should Expose your Service if you run the utility on your local laptop.
Then check connection details in the Service Detail page:Note
Type:
Redis
Version:7.0.5
Status:Ready
External Endpoint:rapports-waysides.gw1.jetdeploy.app:48578
Internal Endpoint:rapports-waysides-master:6379
Password:fb71f8a12bbc4ffd89159c3267249deb
Now you’re ready to connect:
$ export REDISCLI_AUTH=fb71f8a12bbc4ffd89159c3267249deb $ redis-cli -h rapports-waysides.gw1.jetdeploy.app -p 48578
Press enter
rapports-waysides.gw1.jetdeploy.app:48578> SET mykey "Hello\nWorld" OK rapports-waysides.gw1.jetdeploy.app:48578> GET mykey "Hello\nWorld" rapports-waysides.gw1.jetdeploy.app:48578> DEL mykey (integer) 1
Great! You’re now ready to use your SQL database instance!