public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
示例3:函数互调 场景描述 本章节以python语言举例,指导您在一个函数里调用另外一个函数。 API的调用方法请参见如何调用API。 前提条件 已创建委托,包含“FunctionGraph Administrator”或“Tenant Administrator”权限的委托。 约束与限制
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
进制的方式为例,将Go编写的程序部署到FunctionGraph上。 操作流程 构建代码包 创建源文件main.go,代码如下: // main.go package main import ( "fmt" "net/http" "github.com/emicklei/go-restful"
CRON_TZ=Asia/Shanghai 0 0 12 * * * 每天12:30调度函数 CRON_TZ=Asia/Shanghai 0 30 12 * * * 每小时的26分,29分,33分调度函数 CRON_TZ=Asia/Shanghai 0 26,29,33 * * * *
创建依赖包(待废弃) 功能介绍 创建依赖包 调用方法 请参见如何调用API。 URI POST /v2/{project_id}/fgs/dependencies 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 租户项目 ID,获取方式请参见获取项目ID。
案例概述 场景介绍 FunctionGraph支持在函数内访问客户的Redis数据库。本文介绍如何使用FunctionGraph和Redis客户端的能力,实现一个高可定制、高可靠、高可观测的最佳实践。 实现流程 表1 使用FunctionGraph函数访问Redis数据实现流程 序号
标签值 若不配置委托,在触发函数时,执行结果会返回 Failed to access other services because no temporary AK, SK, or token has been obtained. Please set an agency. 目前
在线编辑函数代码 本章节介绍如何通过函数工作流控制台在线编辑与部署函数代码,以及如何查看和修改函数执行入口。 操作场景 编写函数业务代码是配置函数实现业务需求的第一步,FunctionGraph预装了适用于Node.js、Python、PHP、定制运行时函数的开发工具包。如果函数
icloud/latest/docs/resources/fgs_function。 提供如下样例: 在服务器创建一个main.tf文件,将如下脚本拷贝到main.tf上并保存。 terraform { required_providers { huaweicloud
节的优化,函数工作流服务能做到负载快速增长时稳定的延时。4是函数内部初始化逻辑,属于应用层面的冷启动开销,例如深度学习场景下加载规格较大的模型、数据库场景下连接池构建、函数依赖库加载等等。 为了减小应用层冷启动对延时的影响,FunctionGraph推出了initializer接
"name": "userName", "id": "", "domain": { "name": "domainName", "id": "" }
场景描述 本章节以Python 2.7为例,指导您在本地编码,然后将代码文件上传到OBS桶,实现通过OBS链接创建函数。 API的调用方法请参见如何调用API。 前提条件 已在OBS服务中创建OBS桶。 约束与限制 请确保函数与OBS桶创建在同一区域下。 总体思路 在本地进行函数编码后
删除指定的依赖包(待废弃) 功能介绍 删除指定的依赖包 调用方法 请参见如何调用API。 URI DELETE /v2/{project_id}/fgs/dependencies/{depend_id} 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String
获取指定依赖包(待废弃) 功能介绍 获取指定依赖包 调用方法 请参见如何调用API。 URI GET /v2/{project_id}/fgs/dependencies/{depend_id} 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String
扩展函数的存储空间 本章节介绍如何通过函数工作流控制台,配置函数的磁盘挂载,扩展函数的存储空间。 操作场景 FuncitonGraph支持通过挂载文件系统为函数提供持久化存储能力,挂载文件系统可为函数带来如下优势: 多个函数之间可以挂载同一个文件系统,共享访问已经配置好的文件系统。
您即将访问非华为云网站,请注意账号财产安全