-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get-left-trip-ticket函数出错,返回500 #12
Comments
感觉是openfaas函数超时的问题 |
get-left-trip-ticket这个函数有很长的函数链,应该就是函数超时了。但是之前我在openfaas上没出现过超时,迁移到openwhisk之后超时的问题的出现了 |
您好,想请问train ticket serverless版本为不能并发执行多个请求呢,我打印get-left-trip-ticket函数的执行时间,貌似一个函数实例只能执行一个请求
逸伦
***@***.***
…------------------ 原始邮件 ------------------
发件人: "FudanSELab/serverless-trainticket" ***@***.***>;
发送时间: 2023年5月30日(星期二) 中午11:12
***@***.***>;
***@***.******@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
get-left-trip-ticket这个函数有很长的函数链,应该就是函数超时了。但是之前我在openfaas上没出现过超时,迁移到openwhisk之后超时的问题的出现了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
并发多个请求应该从openwhisk端设置,在基于k8s部署的openwhisk中可以通过调整values.yaml来设置。serverless-trainticket只是为函数部署设计的,没有涉及到openwhisk的函数并发设置 |
我好奇的是,我在openfaas上部署了一个图片处理的函数,它在一个函数实例内部可以并行的执行用户发送的多个请求(容器内部有多个线程)。而这个火车票系统却不能做到同时并发执行多个请求。不知道是什么原因。
逸伦
***@***.***
…------------------ 原始邮件 ------------------
发件人: "FudanSELab/serverless-trainticket" ***@***.***>;
发送时间: 2023年8月26日(星期六) 下午4:00
***@***.***>;
***@***.******@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
您好,想请问train ticket serverless版本为不能并发执行多个请求呢,我打印get-left-trip-ticket函数的执行时间,貌似一个函数实例只能执行一个请求 逸伦 @.***
…
------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年5月30日(星期二) 中午11:12 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) get-left-trip-ticket这个函数有很长的函数链,应该就是函数超时了。但是之前我在openfaas上没出现过超时,迁移到openwhisk之后超时的问题的出现了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
并发多个请求应该从openwhisk端设置,在基于k8s部署的openwhisk中可以通过调整values.yaml来设置。serverless-trainticket只是为函数部署设计的,没有涉及到openwhisk的函数并发设置
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
建议排查一下所用的runtime是不是支持接受多个函数调用事件,你在图片处理函数中可以利用多个线程并发多个函数调用请求,看起来像是修改了默认的runtime。 |
您好,我发现使用python写的代码貌似在容器内有多个进程同时处理多个请求,而java nodejs go在容器中没有看见多个进程,nodejs是异步多线程的,go是携程,感觉确实和runtime相关
逸伦
***@***.***
…------------------ 原始邮件 ------------------
发件人: "FudanSELab/serverless-trainticket" ***@***.***>;
发送时间: 2023年8月26日(星期六) 下午4:13
***@***.***>;
***@***.******@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
我好奇的是,我在openfaas上部署了一个图片处理的函数,它在一个函数实例内部可以并行的执行用户发送的多个请求(容器内部有多个线程)。而这个火车票系统却不能做到同时并发执行多个请求。不知道是什么原因。 逸伦 @.***
…
------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年8月26日(星期六) 下午4:00 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) 您好,想请问train ticket serverless版本为不能并发执行多个请求呢,我打印get-left-trip-ticket函数的执行时间,貌似一个函数实例只能执行一个请求 逸伦 @.*** … ------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年5月30日(星期二) 中午11:12 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) get-left-trip-ticket这个函数有很长的函数链,应该就是函数超时了。但是之前我在openfaas上没出现过超时,迁移到openwhisk之后超时的问题的出现了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 并发多个请求应该从openwhisk端设置,在基于k8s部署的openwhisk中可以通过调整values.yaml来设置。serverless-trainticket只是为函数部署设计的,没有涉及到openwhisk的函数并发设置 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
建议排查一下所用的runtime是不是支持接受多个函数调用事件,你在图片处理函数中可以利用多个线程并发多个函数调用请求,看起来像是修改了默认的runtime。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
你是使用了openwhisk自带的batch invocations的设置吗?还是通过使用自定义runtime达到多个invocations同时执行的目的的?
…------------------ 原始邮件 ------------------
发件人: "yilun ***@***.***>;
发送时间: 2023年8月28日(星期一) 上午10:24
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
您好,我发现使用python写的代码貌似在容器内有多个进程同时处理多个请求,而java nodejs go在容器中没有看见多个进程,nodejs是异步多线程的,go是携程,感觉确实和runtime相关
逸伦
***@***.***
 
------------------ 原始邮件 ------------------
发件人: "FudanSELab/serverless-trainticket" ***@***.***>;
发送时间: 2023年8月26日(星期六) 下午4:13
***@***.***>;
***@***.******@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
我好奇的是,我在openfaas上部署了一个图片处理的函数,它在一个函数实例内部可以并行的执行用户发送的多个请求(容器内部有多个线程)。而这个火车票系统却不能做到同时并发执行多个请求。不知道是什么原因。 逸伦 @.***  
…
------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年8月26日(星期六) 下午4:00 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) 您好,想请问train ticket serverless版本为不能并发执行多个请求呢,我打印get-left-trip-ticket函数的执行时间,貌似一个函数实例只能执行一个请求 逸伦 @.***   … ------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年5月30日(星期二) 中午11:12 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) get-left-trip-ticket这个函数有很长的函数链,应该就是函数超时了。但是之前我在openfaas上没出现过超时,迁移到openwhisk之后超时的问题的出现了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 并发多个请求应该从openwhisk端设置,在基于k8s部署的openwhisk中可以通过调整values.yaml来设置。serverless-trainticket只是为函数部署设计的,没有涉及到openwhisk的函数并发设置 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
建议排查一下所用的runtime是不是支持接受多个函数调用事件,你在图片处理函数中可以利用多个线程并发多个函数调用请求,看起来像是修改了默认的runtime。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我使用的是openfaas平台,感谢您之前的回复,这个问题我弄清楚了,openfaas有watchdog这个运行时可以fork子进程并发的执行多个请求,以及后续的ofwatchdog推荐代码使用线程池,搭配并发强大的语言处理多个invocation。我没有搭建openwhisk平台,我想请问这个平台默认不能同时执行多个invocation吗?
逸伦
***@***.***
…------------------ 原始邮件 ------------------
发件人: "FudanSELab/serverless-trainticket" ***@***.***>;
发送时间: 2023年9月4日(星期一) 晚上11:31
***@***.***>;
***@***.******@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
你是使用了openwhisk自带的batch invocations的设置吗?还是通过使用自定义runtime达到多个invocations同时执行的目的的? 
 
------------------ 原始邮件 ------------------
发件人: "yilun ***@***.***>;
发送时间: 2023年8月28日(星期一) 上午10:24
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
您好,我发现使用python写的代码貌似在容器内有多个进程同时处理多个请求,而java nodejs go在容器中没有看见多个进程,nodejs是异步多线程的,go是携程,感觉确实和runtime相关
逸伦
***@***.***
 
------------------ 原始邮件 ------------------
发件人: "FudanSELab/serverless-trainticket" ***@***.***>;
发送时间: 2023年8月26日(星期六) 下午4:13
***@***.***>;
***@***.******@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
我好奇的是,我在openfaas上部署了一个图片处理的函数,它在一个函数实例内部可以并行的执行用户发送的多个请求(容器内部有多个线程)。而这个火车票系统却不能做到同时并发执行多个请求。不知道是什么原因。 逸伦 @.***  
…
------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年8月26日(星期六) 下午4:00 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) 您好,想请问train ticket serverless版本为不能并发执行多个请求呢,我打印get-left-trip-ticket函数的执行时间,貌似一个函数实例只能执行一个请求 逸伦 @.***   … ------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年5月30日(星期二) 中午11:12 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) get-left-trip-ticket这个函数有很长的函数链,应该就是函数超时了。但是之前我在openfaas上没出现过超时,迁移到openwhisk之后超时的问题的出现了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 并发多个请求应该从openwhisk端设置,在基于k8s部署的openwhisk中可以通过调整values.yaml来设置。serverless-trainticket只是为函数部署设计的,没有涉及到openwhisk的函数并发设置 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
建议排查一下所用的runtime是不是支持接受多个函数调用事件,你在图片处理函数中可以利用多个线程并发多个函数调用请求,看起来像是修改了默认的runtime。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
openwhisk需要配置才可以在一个runtime中执行多个invocations,并且目前只支持nodejs
867320164
***@***.***
…---- 回复的原邮件 ----
发件人
yilun ***@***.***>
发送日期
2023年09月10日 15:56
收件人
***@***.***>
抄送人
***@***.***>
,
***@***.***>
主题
Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
我使用的是openfaas平台,感谢您之前的回复,这个问题我弄清楚了,openfaas有watchdog这个运行时可以fork子进程并发的执行多个请求,以及后续的ofwatchdog推荐代码使用线程池,搭配并发强大的语言处理多个invocation。我没有搭建openwhisk平台,我想请问这个平台默认不能同时执行多个invocation吗?
逸伦
***@***.***
------------------ 原始邮件 ------------------
发件人: "FudanSELab/serverless-trainticket" ***@***.***>;
发送时间: 2023年9月4日(星期一) 晚上11:31
***@***.***>;
***@***.******@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
你是使用了openwhisk自带的batch invocations的设置吗?还是通过使用自定义runtime达到多个invocations同时执行的目的的? 
 
------------------ 原始邮件 ------------------
发件人: "yilun ***@***.***>;
发送时间: 2023年8月28日(星期一) 上午10:24
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
您好,我发现使用python写的代码貌似在容器内有多个进程同时处理多个请求,而java nodejs go在容器中没有看见多个进程,nodejs是异步多线程的,go是携程,感觉确实和runtime相关
逸伦
***@***.***
 
------------------ 原始邮件 ------------------
发件人: "FudanSELab/serverless-trainticket" ***@***.***>;
发送时间: 2023年8月26日(星期六) 下午4:13
***@***.***>;
***@***.******@***.***>;
主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12)
我好奇的是,我在openfaas上部署了一个图片处理的函数,它在一个函数实例内部可以并行的执行用户发送的多个请求(容器内部有多个线程)。而这个火车票系统却不能做到同时并发执行多个请求。不知道是什么原因。 逸伦 @.***  
…
------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年8月26日(星期六) 下午4:00 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) 您好,想请问train ticket serverless版本为不能并发执行多个请求呢,我打印get-left-trip-ticket函数的执行时间,貌似一个函数实例只能执行一个请求 逸伦 @.***   … ------------------ 原始邮件 ------------------ 发件人: "FudanSELab/serverless-trainticket" @.>; 发送时间: 2023年5月30日(星期二) 中午11:12 @.>; @.@.>; 主题: Re: [FudanSELab/serverless-trainticket] get-left-trip-ticket函数出错,返回500 (Issue #12) get-left-trip-ticket这个函数有很长的函数链,应该就是函数超时了。但是之前我在openfaas上没出现过超时,迁移到openwhisk之后超时的问题的出现了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 并发多个请求应该从openwhisk端设置,在基于k8s部署的openwhisk中可以通过调整values.yaml来设置。serverless-trainticket只是为函数部署设计的,没有涉及到openwhisk的函数并发设置 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
建议排查一下所用的runtime是不是支持接受多个函数调用事件,你在图片处理函数中可以利用多个线程并发多个函数调用请求,看起来像是修改了默认的runtime。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
at edu.fudan.common.util.JsonUtils.json2Object(JsonUtils.java:63)报错
e.getMessage=No content to map due to end-of-input
at [Source: (String)""; line: 1, column: 0]
e=com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
at [Source: (String)""; line: 1, column: 0]
应该是json解析的问题。但之前查询车票没有问题,不知是什么原因。尝试打印了这里的json也没什么问题
The text was updated successfully, but these errors were encountered: