问题标签 [pcf]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1658 浏览

spring-boot - 我们如何在 pcf 中为微服务配置 API 网关、服务发现?

我正在学习使用 Spring Boot、Spring Cloud(netflix OSS 组件)构建微服务。我在本地机器上运行时使用 netflix Eureka 进行服务发现,使用 zuul 进行 api 网关、ribbon、feign。

当我们部署到 PCF 时,Netflix eureka、zuul、ribbon、feign spring cloud config 没有用?(如果是,pcf 中有哪些可用的替代方案以及如何配置它们?)

由于谁在构建微服务遵循 CI/CD 方法,开发人员如何在推送代码之前验证其微服务的工作,因为我们在生产 pcf 中不使用 eureka、zuul、ribbon、feign。(如何在开发者机器中模拟pcf环境?)。

0 投票
1 回答
199 浏览

pcf - 如何从 PCF 中的配置服务器返回空值?

我正在尝试从微服务中的配置服务器接收空值。我在配置服务器引用的 application.yml 中尝试了“null”(不带引号)以及“${null}”(也不带引号)。两者都提供了一个空字符串。有什么方法可以返回 null 吗?提前致谢!

0 投票
1 回答
968 浏览

java - Pivotal Cloud Foundry - 连接被拒绝

我在 cf push 时看到了下面的错误。我创建了一个具有多个 IP 地址的“外部依赖项”。任何建议将不胜感激。

0 投票
3 回答
400 浏览

devops - 应用程序停止时的新 Relic 警报

我在 PCF 上部署了一个应用程序,并绑定了一个新的 relic 服务。在 new relic 中,我想在我的应用程序停止时收到警报。我不知道这是否可能。如果可能的话,有人可以告诉我怎么做吗?

编辑:我无权访问 New Relic Infrastructure

0 投票
2 回答
613 浏览

cloud-foundry - 检测 PCF 版本

通过应用程序管理器网页和“cf”CLI(以及 API),我可以访问我们的公司 PCF。

如何检测他们正在运行的 PCF 版本?网站上没有列出它,我能找到的最好的方法是使用cf apiwhich 返回:

如何将其映射到 PCF 版本,或者是否有其他方法可以检测到它?

0 投票
1 回答
374 浏览

cloud-foundry - PCF 中的 4 级高可用性,BOSH 是否处理失败的实例或监控?

据我说,正如 PCF 的 4 级高可用性中提到的,当一个实例(进程)失败时,Monit 应该识别它并重新启动它。然后它只会将报告发送给 BOSH。但是,如果整个 VM 出现故障,则 BOSH 有责任识别并重新启动它。

带着这种信念,我回答了一个问题:https ://djitz.com/guides/pivotal-cloud-foundry-pcf-certification-exam-review-questions-and-answers-set-4-logging-scaling-and-high -可用性/

问题和答案

据我说,这个问题的答案应该是选项3,但它说我错了,答案应该是选项2。现在我很困惑。因此,如果我的信念是错误的,请帮助我。

0 投票
0 回答
417 浏览

spring-boot - PCF DB2 用户提供的服务

我使用以下命令在 PCF 中为 db2 创建了用户提供的服务

并将服务绑定到应用程序,并可以在 VCAP Services 中看到环境变量

推送应用程序时出现错误“无法支持空用户 ID”,我尝试将用户参数更改为用户 ID/用户名,但它仍然给我同样的错误,请指出是否正确提供了服务参数。

0 投票
1 回答
600 浏览

spring-batch - Running a spring batch with partitions in cloud foundry

I have created an app with spring batch(with partition) application taking example of this https://github.com/mminella/S3JDBC. My app is reading some files from object store and doing some processing and writing back to object the store. My app with local partition works fine in my machine.

I changed the maven, to run in cloud foundry , did change for deployer partition handler and step execution listener and deploying on pcf.

But while trying to push and run the app on pcf , I am getting an issue : Failing URI /v2/info. I tried to log the error found that there is one call to my app e.g https://mypcf.com:443/v2/info and after that it gives the error. I cant provide full logs because of some restrictions. So I want to know :

  1. To deploy a spring batch in pcf(is there any extra configuration needed except the maven dependency and code changes for deployerpartitionhandler and stepexecutionlistener and @cloudtask): org.springframework.cloud spring-cloud-deployer-cloudfoundry 1.1.0.M1
  2. Is it mandatory to have a separate data base service like my-sql for the partition job. Cant I use H2(the default one, if I don't configure anything)?
  3. Do I need to do any configuration in pcf to support running multiple partitions ?
  4. As I am running remote partitioning , can I run that app on local STS or Intellij(not on PCF-DEV)so that it will run my app in pcf(remote) and launch the workers.(Sorry for the stupid question , I am new to PCF).
0 投票
1 回答
146 浏览

cloud-foundry - Cloudfoundry“服务代理”和它的“服务代理工作者”有什么区别?

大多数 cloudfoundry 服务瓦片都安装了一个服务代理和一个服务代理工作者。

我了解代理正在接收来自云控制器 (CC) 的 Service Broker API 请求,并托管所有服务类型的主仪表板 UI。因此,代理向市场注册,并在 create-instance 上创建虚拟机并在其上安装服务,并提供用于管理实例的 UI 部件。

但是经纪人工作人员的职责到底是什么?
它何时以及为什么与哪些组件进行通信?

0 投票
2 回答
2281 浏览

node.js - 如何在阻止任何公共流量的公司防火墙后面安装 node-oracledb?

语境

我正在尝试通过为我的项目(在公司防火墙后面)运行 npm install oracledb 来安装 node-oracledb 模块。我有正确的代理设置!(y)

但它不断抛出以下错误:

npm

λ npm 安装 oracledb

RCA 和调查结果

查看oracledbinstall.js负责“安装”模块的脚本后,我可以立即看到一个问题。

该脚本以以下内容开头:在此处输入图像描述

所以我相当肯定,当它试图与 Github 联系以获取 oracledb 模块运行所需的二进制文件和其他脚本时,它会被我的防火墙阻止

解析度?

所以我想知道是否有任何方法可以成功实现这一点。