Hyper Open Edge Cloud

How To Request A Shared Instance In Command Line

How To Request A Shared Instance (CDN) In Command Line
  • Last Update:2023-10-09
  • Version:001
  • Language:en

Agenda

  • Prerequesite
  • Request Instance
  • Verification
 

Prerequesite

 

  • Have SlapOS Client Configured: How To
  • Have a URL of a "Raw" Software Release Profile supplied somewhere
  • Known what parameters you are going to put

 

 

Request Instance

In your terminal (slapos client configured), run the following command.

    $ slapos request --type custom-personal --slave your_frontend_name https://lab.nexedi.com/nexedi/slapos/raw/1.0.319/software/rapid-cdn/software.cfg --parameters 'url=your_backend_url'
  

Replace the url with your backend URL. Please refer How To Request A Rapid.Space CDN to input the backend URL. 

Here are some example for you to complete the parameter. 

If you what to have a CDN requested with

<?xml version="1.0" encoding="UTF-8"?>
<instance>
    <parameter id="url">http://[ipv6_addr]/</parameter>
    <parameter id="enable_cache">true</parameter>
    <parameter id="disable-no-cache-request">true</parameter>
    <parameter id="enable-http2">true</parameter>
</instance>

You can extend your command to: 

$ slapos request --type custom-personal --slave your_frontend_name https://lab.nexedi.com/nexedi/slapos/raw/1.0.319/software/rapid-cdn/software.cfg --parameters 'url=http://[ipv6_addr]/' 'enable_cache=true' 'disable-no-cache-request=true' 'enable-http2=true'

In the case of ERP5 (or SlapOS master) frontend request: 

$ slapos request --type custom-personal --slave erp5_frontend http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg --parameters 'type=zope' 'url=https://[xxxx]:yyyy/'

$ slapos request --type custom-personal --slave slapos_master_modern_frontend http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg --parameters 'type=zope' 'url=https://[xxxx]:yyyy/' 'path=erp5/web_site_module/renderjs_runner'

Request Instance

Run the command

Run Request Instance Command
 

Verification

Go to Service list on Panel to check if you requested CDN is listed

 

Verification

Your instance will appear in the services list

Click on your Servers