我们如何在 Kubernetes 中公开一系列端口?
我的云应用程序在运行时使用一系列端口(40000 ~42000)。
如何在 Kubernetes 服务 yaml 文件中指定公开的端口范围?
我的问题是,给定下面的 yaml 文件,如果我在“dir: process/cbd-bu-data”的任何文件中进行更改,Cloud Build 会在触发时串行运行所有步骤。这会导致时间的浪费。
我希望只有该步骤在 cloudbuild 中运行,并在该目录的文件中进行了更改。我应该怎么做才能实现这个目标?
这是我的cloudbuild.yaml文件:
steps:
- args:
- beta
- functions
- deploy
- "--runtime=python37"
- "--trigger-http"
- "--entry-point=process_cbd_group_data"
- process_cbd_group_data
- "--region=us-central1"
dir: process/cbd-group-data
name: gcr.io/cloud-builders/gcloud
- args:
- beta
- functions
- deploy
- "--runtime=python37"
- "--trigger-http"
- "--entry-point=process_cbd_bu_data"
- process_cbd_bu_data
- "--region=us-central1"
dir: process/cbd-bu-data
name: gcr.io/cloud-builders/gcloud
- args:
- beta
- functions
- deploy
- "--runtime=python37"
- "--trigger-http"
- "--entry-point=process_cbd_structure_data"
- process_cbd_structure_data
- "--region=us-central1"
dir: process/cbd-structure-data
name: gcr.io/cloud-builders/gcloud
Run Code Online (Sandbox Code Playgroud) google-cloud-platform google-cloud-functions google-cloud-build
我在这里读过类似的问题,但无法理解这是否已解决。
Google bigquery 将表导出到 Google Cloud 存储中的多个文件,有时甚至导出到单个文件
我正在使用下面的大查询导出数据选项从文件中的 2 个表中导出数据。我已经为此编写了选择查询。
EXPORT DATA OPTIONS(
uri='gs://whr-asia-datalake-dev-standard/outbound/Adobe/Customer_Master_'||CURRENT_DATE()||'*.csv',
format='CSV',
overwrite=true,
header=true,
field_delimiter='|') AS
SELECT
Run Code Online (Sandbox Code Playgroud)
我从选择查询中只返回了 2 行,并且我假设应该在谷歌云存储中只创建一个文件。仅当数据大于1GB时才会创建多个文件。这就是我的理解。
但是,在云存储中创建了 3 个文件,其中 2 个文件只有标题记录,第三个文件有 3 条记录(1 个标题和 2 个实际数据记录)
radhika_sharma_ibm@cloudshell:~ (whr-asia-datalake-nonprod)$ gsutil ls gs://whr-asia-datalake-dev-standard/outbound/Adobe/
gs://whr-asia-datalake-dev-standard/outbound/Adobe/
gs://whr-asia-datalake-dev-standard/outbound/Adobe/Customer_Master_2021-02-04000000000000.csv
gs://whr-asia-datalake-dev-standard/outbound/Adobe/Customer_Master_2021-02-04000000000001.csv
gs://whr-asia-datalake-dev-standard/outbound/Adobe/Customer_Master_2021-02-04000000000002.csv
Run Code Online (Sandbox Code Playgroud)
为什么会创建空文件?有人可以帮忙吗?我们不想创建空文件。我认为当文件大小为 1 GB 时,只应创建一个文件。超过 1 GB,我们应该有多个文件但不为空。
假设我运行Cloud RunGoogle 的一项服务。我们还假设有人想要真正伤害您并找出所有 API 路由,或者能够通过向网站发送垃圾邮件来发送大量后期请求。
有一个电子邮件通知,会在您之前设置的某些限制上弹出。
还有没有办法自动切断Cloud Run服务,或者设置暂时离线?我找不到任何好的资源或解决方案。
我已经安装了firebase@9.0.1,使用纱线。该包看起来工作正常,但在按照给定的方式运行后就出现错误yarn install。
Module not found: Error: Package path . is not exported from package /Users/trinity/Projects/hello/node_modules/firebase (see exports field in /Users/trinity/Projects/hello/node_modules/firebase/package.json)\nRun Code Online (Sandbox Code Playgroud)\n仅供参考,在此处附加已安装的库集。
\n\xe2\x9e\x9c hello git:(main) \xe2\x9c\x97 yarn list --depth=0 | grep firebase\n\xe2\x94\x9c\xe2\x94\x80 @firebase/analytics-compat@0.1.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/analytics-types@0.7.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/analytics@0.7.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/app-check-compat@0.1.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/app-check-interop-types@0.1.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/app-check@0.4.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/app-compat@0.1.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/app-types@0.7.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/app@0.7.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/auth-compat@0.1.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/auth-interop-types@0.1.6\n\xe2\x94\x9c\xe2\x94\x80 @firebase/auth-types@0.11.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/auth@0.17.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/component@0.5.6\n\xe2\x94\x9c\xe2\x94\x80 @firebase/database-compat@0.1.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/database-types@0.9.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/database@0.12.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/firestore-compat@0.1.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/firestore-types@2.5.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/firestore@3.0.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/functions-compat@0.1.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/functions-types@0.5.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/functions@0.7.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/installations@0.5.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/logger@0.2.6\n\xe2\x94\x9c\xe2\x94\x80 @firebase/messaging-compat@0.1.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/messaging-interop-types@0.1.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/messaging@0.9.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/performance-compat@0.1.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/performance-types@0.1.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/performance@0.5.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/polyfill@0.3.36\n\xe2\x94\x9c\xe2\x94\x80 @firebase/remote-config-compat@0.1.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/remote-config-types@0.2.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/remote-config@0.2.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/storage-compat@0.1.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/storage-types@0.6.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/storage@0.8.1\n\xe2\x94\x9c\xe2\x94\x80 @firebase/util@1.3.0\n\xe2\x94\x9c\xe2\x94\x80 @firebase/webchannel-wrapper@0.5.1\n\xe2\x94\x9c\xe2\x94\x80 firebase@9.0.1\n\xe2\x9e\x9c hello …Run Code Online (Sandbox Code Playgroud) 我不清楚 Vertex AI 模型预测的定价。在文档中,在标题“更多关于预测节点的自动缩放”下提到的要点之一是:
“如果您选择自动缩放,节点数量会自动缩放,并且可以在无流量持续时间内缩小到零”
稍后文档中提供的示例似乎也表明在没有流量的时期,使用零个节点。但是,当我在 Vertex AI 中创建端点时,在“自动缩放”标题下显示:
“自动缩放:如果设置最小值和最大值,计算节点将进行缩放以满足这些边界内的流量需求”
“最小计算节点数”下的值不允许为 0,因此必须输入 1 或更大,并且提到:
默认值为 1。如果设置为 1 或更多,则即使没有流量需求,计算资源也会持续运行。这可能会增加成本,但可以避免由于节点初始化而导致请求丢失。
我的问题是,当我通过将最小值设置为 1、最大值设置为 10 来选择自动缩放时,会发生什么情况。1 个节点是否始终连续运行?或者按照文档的建议,在没有流量的情况下它会缩小到 0 个节点。
为了测试,我部署了一个具有自动缩放功能的端点(最小值和最大值设置为 1),然后当我发送预测请求时,响应几乎是立即的,表明节点已经启动。大约一个小时后,我再次这样做,再次立即得到响应,表明该节点可能永远不会关闭。另外,对于高延迟要求,是否可以自动缩放到 0 个节点(如果这确实可能,甚至是实用的),即,从 0 个节点启动时我们可以期望多少延迟?
google-cloud-platform google-ai-platform google-cloud-vertex-ai
我将 AngularFire 升级到 7,并且在使用 .where 和 collectionReference 时遇到问题。那么简单..如何正确使用它?
我尝试使用“@angular/fire/firestore”中的“集合”,例如:
const ref = collection(this.firestore, 'collectionName');
Run Code Online (Sandbox Code Playgroud)
但裁判没有说“哪里”之类的。
我知道“@angular/fire/firestore”也有“query”和“where”,但我不知道如何使用它。
如何使用新 API 的“where”在集合中查找文档?
javascript firebase google-cloud-platform angularfire2 google-cloud-firestore
我正在gcloudGoogle Cloud Shell 中使用该命令。我正在关注的教程以及文档(https://cloud.google.com/sdk/gcloud/reference/compute/zones/list)表示,要以表格形式列出所有区域,您应该使用此命令:
gcloud compute zones list
Run Code Online (Sandbox Code Playgroud)
当我运行它时,结果不是在表格中列出,而是如下所示:
NAME: us-west2-b
REGION: us-west2
STATUS: UP
NEXT_MAINTENANCE:
TURNDOWN_DATE:
NAME: us-west2-c
REGION: us-west2
STATUS: UP
NEXT_MAINTENANCE:
TURNDOWN_DATE:
NAME: us-west3-a
REGION: us-west3
STATUS: UP
NEXT_MAINTENANCE:
TURNDOWN_DATE:
Run Code Online (Sandbox Code Playgroud)
这是一个全新的原始 Google Cloud 帐户。Google 是否更改了命令的默认输出格式list?
托管在 GCP 上的 Postgres 12.8 集群(1 个写入器,1 个读取器)。
每当我在“READER 实例上”出现 CPU 峰值并深入“查询见解”进行昂贵的查询时,每次最昂贵的操作都是“UTILITY COMMAND”。
我搜索“UTILITY COMMAND”并只得到这个
有人可以指导我如何深入“实用命令”以及如何降低 READER 实例的成本吗?
愿望
我正在尝试使用以下方式验证 gcloud sdk gcloud init:。
我得到了一个应该访问的 URL,以便复制令牌并将其返回到 CLI...但我得到的不是令牌,而是以下错误:
Erreur d'autorisation
Erreur 400 : invalid_request
Missing required parameter: redirect_uri
Run Code Online (Sandbox Code Playgroud)
这是一个错误吗?
gcloud version信息:
Google Cloud SDK 377.0.0
alpha 2022.03.10
beta 2022.03.10
bq 2.0.74
bundled-python3-unix 3.8.11
core 2022.03.10
gsutil 5.8
Run Code Online (Sandbox Code Playgroud)
gcloud init我在 wsl2 (Ubuntu 18.04) 上运行。安装 gcloud 后立即出现此错误sudo apt install google-cloud-sdk。
oauth-2.0 google-cloud-platform gcloud windows-subsystem-for-linux wsl-2
firebase ×2
gcloud ×2
angularfire2 ×1
electron ×1
javascript ×1
kubernetes ×1
monitoring ×1
node.js ×1
oauth-2.0 ×1
performance ×1
postgresql ×1
reactjs ×1
windows-subsystem-for-linux ×1
wsl-2 ×1