Installing prepaid usage monitoring for cloud
For compute workloads that extend to the cloud, you can optimize cloud resource usage by matching cloud-use models with pay-as-you-go licensing. Known as prepaid usage, this option enables you to prepay for hours used by a host's cores (core hours) and consume those hours however you want. To audit prepaid consumption, you must install the solution for prepaid usage monitoring and configure IBM® Spectrum Conductor to upload usage metrics to IBM Cloud Private.
Before you begin
- Install an IBM Cloud Private cluster. An
existing installation of IBM Cloud Private 3.1
or higher is required to track prepaid usage for IBM Spectrum
Conductor.
- To install IBM Cloud Private 3.1 Enterprise (entitled), see Installing IBM Cloud Private.
- To install IBM Cloud Private 3.1 Community Edition, see Installing IBM Cloud Private-CE.
In your IBM Cloud Private 3.1 environment, generate an API key:- Log on to the IBM Cloud Private boot node
and obtain the cluster configuration details.
You can use either the IBM Cloud Private CLI or the management console to obtain the details. For more information, see the
Accessing your cluster from the kubectl CLI
topic in IBM Cloud Private documentation. - Use the
cloudctl
command to log on to the cluster as the admin user:> cloudctl login -a https://my_icp_IP:8443 -u admin -p admin -n default --skip-ssl-validation
where my_icp_IP is the IP address of the host that runs the management console.
- Create the
spectrumserviceid
and generate an API key for it:> cloudctl iam service-id-create spectrumserviceid-default-1 -d "SPECTRUM serviceid in default namespace, number 1" > cloudctl iam service-api-key-create spectrumapikey-default-1 spectrumserviceid-default-1
An API key (similar to
) is generated. Save this key to add later to theOiiJ1q3gjIDk2JJGxHK6xeZwU5mrIHyu2nUv38SzrQSA
icpup.json
configuration file.
- Install an IBM Spectrum Conductor cluster (see Roadmap: Installing IBM Spectrum Conductor). Prepaid monitoring can be installed on your existing 2.3.0 cluster.
- Download the prepaid monitoring packages from IBM Passport Advantage®. These packages specify licensing terms and extract the files to install prepaid monitoring in your cluster.
About this task
With prepaid monitoring for the cloud, CPU core and socket, GPU socket, and host count metrics are uploaded through an external load index monitor (ELIM) in IBM Spectrum Conductor to a metering service in IBM Cloud Private. You can then audit IBM Spectrum Conductor resource usage from the metering dashboard in IBM Cloud Private.
Follow this task to review the licensing terms for prepaid usage, then install and configure prepaid monitoring in your cluster.
Procedure
What to do next
- Look for upload errors in the elim.icpup.hostname log,
where hostname identifies the host on which the ELIM
(elim.icp.uploader) runs to upload data to IBM Cloud Private.
- To get the name of the host on which the elim.icp.uploader runs, open the
$EGO_CONFDIR/../work/data/icpup.work file and look for the
timestamp hostname
values (for example,1541451364 egomgmtnode1.example.com
). - Log in to this host (for example, egomgmtnode1.example.com) and check data upload status in the $EGO_TOP/kernel/log/elim.icpup.hostname log.
- To get the name of the host on which the elim.icp.uploader runs, open the
$EGO_CONFDIR/../work/data/icpup.work file and look for the
- Log on to the IBM Cloud Private console and
go to page to view usage data.
The following metrics are uploaded to IBM Cloud Private:
- Total Hosts: Total number of available and closed hosts in the cluster.
- Total Cores: Total number of CPU cores on the reported hosts.
- Total GPUs: Total number of GPU processors on the reported hosts.
- Total Sockets: Total number of CPU sockets on the reported hosts.
When prepaid usage is first enabled, CPU core and GPU socket data for the previous two days is uploaded immediately to the Metering page. Host and socket usage is uploaded from the current time. Thereafter, the system collects metrics every 5 minutes and uploads to the metering service every 15 minutes.
For more information, see the
IBM Cloud Private metering service
topic in IBM Cloud Private documentation.