Skip to content
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

Open
wiluen opened this issue Apr 27, 2023 · 10 comments
Open

get-left-trip-ticket函数出错,返回500 #12

wiluen opened this issue Apr 27, 2023 · 10 comments

Comments

@wiluen
Copy link

wiluen commented Apr 27, 2023

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也没什么问题

@wiluen
Copy link
Author

wiluen commented Apr 27, 2023

感觉是openfaas函数超时的问题

@GitHubDiom
Copy link

get-left-trip-ticket这个函数有很长的函数链,应该就是函数超时了。但是之前我在openfaas上没出现过超时,迁移到openwhisk之后超时的问题的出现了

@wiluen
Copy link
Author

wiluen commented Aug 26, 2023 via email

@GitHubDiom
Copy link

您好,想请问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的函数并发设置

@wiluen
Copy link
Author

wiluen commented Aug 26, 2023 via email

@GitHubDiom
Copy link

我好奇的是,我在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。

@wiluen
Copy link
Author

wiluen commented Aug 28, 2023 via email

@GitHubDiom
Copy link

GitHubDiom commented Sep 4, 2023 via email

@wiluen
Copy link
Author

wiluen commented Sep 10, 2023 via email

@GitHubDiom
Copy link

GitHubDiom commented Sep 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants