检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
精简函数代码,例如:删除不必要的依赖包。 使用C#语言时,除了以上两种方法,在非并发场景下,您还可以通过以下方法增加运行速度。 创建一个一分钟一次的定时触发器,确保至少有一个存活的实例。 父主题: 调用函数
exceptions from huaweicloudsdkfunctiongraph.v2 import * if __name__ == "__main__": # 该示例仅为测试使用,在生产环境中请勿硬编码ak sk 信息在代码中 ak = "<YOUR AK>"
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
"UEsDBAoAAAAIABESwlDHSM8cOQYAAJYRAAAIAAAAaW5kZXgucHm9V91v2zYQf9dfcXAeLKeKkrYZNgTQQ9JvpG2CJsOwJ4GWaJuLRGok5VT963dHUpZsJ82GofVDQh2Pd8e7333wAI4Oj6BQ
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
在代码编辑器中配置函数代码,支持以下三种部署代码的方式: 在线编辑函数代码:使用控制台代码编辑器在线编辑函数代码。 直接上传函数代码:直接上传本地开发完成的ZIP文件或JAR文件,适用于代码文件不超过40MB的场景使用。 从OBS上传函数代码:通过输入OBS桶地址,上传OBS桶中的ZIP
配置函数 能否在函数环境变量中存储敏感信息? FunctionGraph的函数如何读写上传的文件? 为函数挂载文件系统时,报“failed to mount exist system path” FunctionGraph如何实现域名解析? FunctionGraph如何通过域名访问专享版APIG中注册的接口?
配置触发器 函数如何获取APIG触发器中的请求路径或请求参数? 函数和Kafka必须在同一个子网内,才可以配置Kafka触发器吗?
程序性能;同时,Redis提供了最大连接数配置确保连接资源的使用保持在一个可控范围内,并且能够确保线程安全。 最大连接数配置区间:在FunctionGraph函数配置Redis最大连接数建议在如下区间选取一个值: 最大连接数下限 =(函数单实例并发度)*(函数单次执行访问Redis并发度)
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
key和Region Name,初始化成功如图3所示。 图3 初始化成功 执行如下命令,查看FunctionGraph支持命令。如图4所示,“Available Operations”中返回了FunctionGraph服务支持的operation列表。 hcloud FunctionGraph
counts 函数 5分钟 failcount 错误次数 该指标用于统计函数调用错误次数。 以下两种情况都会计入错误次数: 函数请求异常,导致无法执行完成且返回200。 函数自身语法错误或者自身执行错误。 单位:次 ≥ 0 counts 函数 5分钟 failRate 错误率 该指标
R服务中执行。 当前允许流程中配置0-10个EG节点。 当EG节点连接异常处理节点时,最多可以再连接一个非开始节点和非异常处理节点。 当EG节点不连接异常处理节点时,只能连接一个非开始节点。 前提条件 已经在事件网格(EG)控制台创建自定义事件源和自定义事件通道,具体创建详情请参见自定义事件源、自定义事件通道。
Queue,绑定操作请参见绑定RabbitMQ Exchange、绑定RabbitMQ Queue。 Vhost是一个相对独立的RabbitMQ服务,用于管理Exchange、Queue。一个RabbitMQ实例下可以有多个Vhost,一个Vhost里可以有若干个Exchange和Queue,具体详情请参见RabbitMQ业务使用流程。
Queue,绑定操作请参见绑定RabbitMQ Exchange、绑定RabbitMQ Queue。 Vhost是一个相对独立的RabbitMQ服务,用于管理Exchange、Queue。一个RabbitMQ实例下可以有多个Vhost,一个Vhost里可以有若干个Exchange和Queue,具体详情请参见RabbitMQ业务使用流程。