Google cloud platform 如何在Google cloud scheduler中使用APP Engine调度管道

Google cloud platform 如何在Google cloud scheduler中使用APP Engine调度管道,google-cloud-platform,cloud,scheduler,Google Cloud Platform,Cloud,Scheduler,我阅读google cloud scheduler来安排我的批处理管道。 我想每天运行一次批处理管道。我读到“应用程序引擎”可以安排管道。我试图在stack overflow和google中找到答案,但并没有找到AppEngine如何准确地安排批处理管道? 使用云调度器调度批处理管道还有其他方法吗? 我发现了一种方法,即保持管道运行,每小时使用云调度器删除pub-sub消息并运行作业。但这是昂贵和不方便的操作 我现在想知道AppEngine如何帮助安排批处理管道。 提前谢谢 我现在想知道App

我阅读google cloud scheduler来安排我的批处理管道。

我想每天运行一次批处理管道。我读到“应用程序引擎”可以安排管道。我试图在stack overflow和google中找到答案,但并没有找到AppEngine如何准确地安排批处理管道? 使用云调度器调度批处理管道还有其他方法吗? 我发现了一种方法,即保持管道运行,每小时使用云调度器删除pub-sub消息并运行作业。但这是昂贵和不方便的操作

我现在想知道AppEngine如何帮助安排批处理管道。 提前谢谢

我现在想知道AppEngine如何帮助安排批处理管道

根据:

您可以通过以下方式自动化管道执行:

  • 使用谷歌应用引擎(仅限灵活环境)或云功能
有关如何使用App Engine计划批处理管道的更多详细信息,请参见

如果这对你有帮助,请告诉我

Still I am not clear about it. I have created app engine in the project. Added servlet in the app engine . Then created servelet                        

@WebServlet(name = "dataflowscheduler", value = "/dataflow/schedule")
public class DataflowSchedulingServlet extends HttpServlet {
  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    Batchpipleine.run();
  }
}    

Batchpipeline is the java class which has run method. Run method has all steps for pipeline execution like pubs reading message, windowing, storing to db etc.

Am I on right path ?

Cloud scheduler app :
Name : Test pipeline 
Description: This will trigger batch job
Frequency : */5**** 
Traget : /dataflow/schedule

Is target correct?

Is this way to run pipeline using app engine?
Do you have any guidance or process which include process to run pipeline using app engine other than  document mentioned above 
我现在想知道AppEngine如何帮助安排批处理管道

根据:

您可以通过以下方式自动化管道执行:

  • 使用谷歌应用引擎(仅限灵活环境)或云功能
有关如何使用App Engine计划批处理管道的更多详细信息,请参见


如果这对你有帮助,请告诉我

嘿,你几天前在这个链接上问了这个问题。这是一个相当广泛的问题。我建议您考虑如何使其更具体——您尝试了什么,什么会是一个好的结果,您已经在工作的任何代码,等等。请参阅,类似地,您可能想看看当您几天前在这个链接上问这个问题时该怎么办。这是一个相当广泛的问题。我建议您考虑如何使它更具体——您尝试了什么,什么会是一个好的结果,您已经在工作的任何代码,等等。请参阅更多,同样,您可能想知道当我仍然不清楚时该怎么做。我已经在项目中创建了应用程序引擎。在应用程序引擎中添加了servlet。然后创建servelet@WebServlet(name=“dataflowscheduler”,value=“/dataflow/schedule”)公共类DataflowSchedulingServlet扩展HttpServlet{@Override public void doGet(HttpServletRequest req,HttpServletResponse resp)引发IOException{Batchpipleine.run();}}您的意思是
Batchpipeline.run()
而不是
Batchpipleine.run()?
也可以使用此文件中的cron.yaml。请不要提供所有详细信息。关于您的答案,cron.yaml中的必填字段是
url
,这是您希望cron服务向其发送作业请求的应用程序中的url,并且应该
url:/dataflow/schedule
schedule
,后者定义作业的日程安排。
target
是可选的,它是应用程序中特定服务的名称。总结一下过程:1.创建servlet以调用管道代码,2.创建cron.yaml文件以配置应用程序引擎cron服务,3.将cron作业部署到应用程序引擎。是指Batchpipeline.run()而不是Batchpipleine.run()?这意味着什么。我有一个java类Batchpipeline,我重命名了main方法run。这个run方法有窗口和其他逻辑。(这是main类).我做得对吗?你错过了Batchpipeline。我仍然不清楚。我在项目中创建了app engine。在app engine中添加了servlet。然后创建了servelet@WebServlet(name=“dataflowscheduler”,value=“/dataflow/schedule”)公共类DataflowSchedulingServlet扩展了HttpServlet{@Override public void doGet(HttpServletRequest-req,HttpServletResponse-resp)抛出IOException{Batchpipleine.run();}}您的意思是
Batchpipeline.run()
而不是
Batchpipleine.run()?
也可以使用此文件中的cron.yaml。请不要提供所有详细信息。关于您的答案,cron.yaml中的必填字段是
url
,这是您希望cron服务向其发送作业请求的应用程序中的url,并且应该
url:/dataflow/schedule
schedule
,后者定义作业的日程安排。
target
是可选的,它是应用程序中特定服务的名称。总结一下过程:1.创建servlet以调用管道代码,2.创建cron.yaml文件以配置应用程序引擎cron服务,3.将cron作业部署到应用程序引擎。是指Batchpipeline.run()而不是Batchpipleine.run()?这意味着什么。我有一个java类,它是Batchpipeline,我重命名了main方法run。这个run方法有窗口和其他逻辑。(这是main类)。我做得对吗?你错过了类型化的Batchpipeline。
Still I am not clear about it. I have created app engine in the project. Added servlet in the app engine . Then created servelet                        

@WebServlet(name = "dataflowscheduler", value = "/dataflow/schedule")
public class DataflowSchedulingServlet extends HttpServlet {
  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    Batchpipleine.run();
  }
}    

Batchpipeline is the java class which has run method. Run method has all steps for pipeline execution like pubs reading message, windowing, storing to db etc.

Am I on right path ?

Cloud scheduler app :
Name : Test pipeline 
Description: This will trigger batch job
Frequency : */5**** 
Traget : /dataflow/schedule

Is target correct?

Is this way to run pipeline using app engine?
Do you have any guidance or process which include process to run pipeline using app engine other than  document mentioned above