简体   繁体   English

cloudhub 上存储的文件在哪里

[英]Where are the files stored on cloudhub

Per my understanding, cloudhub is a PaaS service and we can deploy applications directly to Cloudhub.根据我的理解,cloudhub 是一种 PaaS 服务,我们可以将应用程序直接部署到 Cloudhub。 I have below questions我有以下问题

  1. Can we create intermediate files on cloudhub.我们可以在 cloudhub 上创建中间文件吗? If yes, how can we define the path?如果是,我们如何定义路径?
  2. When we use SFTP to pull file from particular location, what should be the path on cloudhub server for processing当我们使用SFTP从特定位置拉取文件时,cloudhub服务器上的路径应该是什么来处理
  3. Can we do SSH on cloudhub server我们可以在 cloudhub 服务器上做 SSH 吗
  4. If we need to externalize cron timings of scheduler,(via config etc to avoid code change), what is the best practice for setting cron expression.如果我们需要外部化调度程序的 cron 计时(通过配置等以避免代码更改),设置 cron 表达式的最佳实践是什么。

All above questions are related to Cloudhub deployment model.以上所有问题都与 Cloudhub 部署 model 有关。

Thanks in advance提前致谢

  • The scheduler already gets externalized in the platform when you deploy to CloudHub.当您部署到 CloudHub 时,调度程序已在平台中外部化。
  • You can technically store the files in /temp , but don't expect them to persist.从技术上讲,您可以将文件存储在/temp中,但不要指望它们会持久存在。 That would be an "ephemeral" file system.那将是一个“短暂的”文件系统。
  • You can not SSH into the CloudHub server.您不能 SSH 进入 CloudHub 服务器。
  • Rather than downloading the entire SFTP file and saving it, and then working on it, I would suggest streaming it if possible.如果可能的话,我建议不要下载整个 SFTP 文件并保存,然后处理它,而是建议流式传输。 You can process JSON/XML/CSV files as a stream, and even use deferred DataWeave with them enabling end-to-end streaming.您可以将 JSON/XML/CSV 文件作为 stream 进行处理,甚至可以将延迟的 DataWeave 与它们一起使用,从而实现端到端流式处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM