Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 2.55 KB

how-to-update-javascript-runtime-options.md

File metadata and controls

57 lines (45 loc) · 2.55 KB
titledescriptionauthorms.authorms.datems.servicems.topicms.custom
Quickstart – Update the JavaScript runtime options on an Azure Managed CCF resource
Learn to update the JavaScript runtime options on an Azure Managed CCF resource
msftsettiy
settiy
09/08/2023
azure-confidential-ledger
how-to
devx-track-js

Quickstart: Update the runtime options of the JavaScript execution engine on an Azure Managed CCF resource

Sometimes it is necessary to update the runtime options of the CCF JavaScript interpreter to extend the request execution duration or update the heap or stack allocation size. In this how to guide, you will learn to update the runtime settings. This tutorial builds on the Azure Managed CCF (Managed CCF) resource created in the Quickstart: Create an Azure Managed CCF resource using the Azure portal tutorial.

Prerequisites

[!INCLUDE Prerequisites]

Download the service identity

[!INCLUDE Download Service Identity]

Update the runtime options

[!INCLUDE Mac instructions]

  1. Prepare a set_js_runtime_options.json file and submit it using this command:
    $ cat set_js_runtime_options.json { "actions": [ { "name": "set_js_runtime_options", "args": { "max_heap_bytes": 1024, "max_stack_bytes": 1024, "max_execution_time_ms": 5000, // increase the request execution time"log_exception_details": false, "return_exception_details": false } } ] } $ proposal_id=$( (ccf_cose_sign1 --content set_js_runtime_options.json --signing-cert member0_cert.pem --signing-key member0_privk.pem --ccf-gov-msg-type proposal --ccf-gov-msg-created_at `date -Is`| curl https://confidentialbillingapp.confidential-ledger.azure.com/gov/proposals -H 'Content-Type: application/cose' --data-binary @- --cacert service_cert.pem | jq -r ‘.proposal_id’) )
  2. The next step is to accept the proposal by submitting a vote. [!INCLUDE Submit a vote]
  3. Repeat the above step for every member in the Managed CCF resource.
  4. After the proposal is accepted, the runtime options will be applied to the subsequent requests.

Next steps

close