Skip to main content

Certification track: AI Tooling

RAGFlow on Google Cloud Run

RAGFlow on Google Cloud Run

RAGFlow is an open-source document intelligence and Retrieval-Augmented Generation (RAG) platform. It ingests PDFs, Word documents, HTML pages, and other formats, chunks and embeds them, stores vectors in Elasticsearch, exposes a REST API for question-answering, and provides a web UI for knowledge base management and enterprise search. This module deploys RAGFlow on Cloud Run v2 on top of the App_CloudRun foundation, which provisions and manages the shared Google Cloud infrastructure.

This guide focuses on the cloud services RAGFlow uses and how to explore and operate them from the Google Cloud Console and the command line. For the mechanics common to every Cloud Run application — service identity, ingress and load balancing, scaling and concurrency, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC Service Controls, backups, and the deployment lifecycle — refer to the App_CloudRun foundation guide rather than repeating them here.

Deployment prerequisite: RAGFlow_CloudRun requires Elasticsearch_GKE to be deployed first. The elasticsearch_hosts variable must be set when deploy_application = true — the plan is rejected if it is empty.


What RAGFlow costs on RAD, and how that compares​

Running RAGFlow in your own Google Cloud project costs about US$101.98/month in infrastructure, plus a one-time module fee of 110 RAD credits (sized at 2 vCPU / 4 GiB on a scale-to-zero Cloud Run instance). RAD charges the module fee once, at deploy time — never again on Update — plus build time metered in credits; Google Cloud usage itself is billed to your own billing account at Google's list price. On a RAD-managed project the same resources are metered hourly in credits at list price plus RAD's margin — about 32 credits/day — and the module fee is 10% lower, at 99 credits. See "Pause it for free" below for how a RAD-managed RAGFlow deployment can be stopped, at no running cost, until you need it again. (or see the GKE guide if you need Kubernetes)

What you pay on RAD​

ItemOwn projectRAD-managed project
Module fee110 credits (once)99 credits (once)
Build time~3-6 credits, metered per build minutesame, metered in credits at list price + RAD's margin
Google Cloud running cost~$101.98/month, billed to your own billing account at Google's list price~32 credits/day, metered hourly at list price + RAD's margin

Default running cost in your own project

ResourceUS$/month (Google list price, us-central1)
Cloud Run, 2x vCPU / 4 GiB (scaleToZero)31.53
Cloud SQL for MySQL, 1 vCPU / 3.75 GB, zonal, 10 GB SSD51.02
NFS/cache file server (small VM)13.43
Cloud NAT and networking5
Cloud Storage (add-ons, backups)1
Total$101.98

How it compares​

  • We could not verify a current, directly-comparable commercial SaaS price for this exact open-source project, so the honest comparison is a bare self-managed server: Hetzner CPX22 (2 vCPU/4GB, $24/mo), a DigitalOcean 2 vCPU/4GB Droplet ($24/mo), or a GCP Compute Engine e2-standard-2 (2 vCPU/8GB, ~$49/mo).
  • RAD is not claiming to beat a bare VPS on sticker price — it usually does not. What RAD adds for the same or a similar dollar figure is a managed database, Secret Manager-held credentials, monitoring, and one-click Update, none of which a bare VPS gives you for free.
  • On a bare VPS you are the one applying OS/database security patches, taking and testing backups, and renewing certificates; RAD's managed Cloud SQL, Secret Manager and monitoring handle all three for you.

Pause it for free: delete a RAD-managed project, restore it when you need it​

This is the headline option on a RAD-managed project, and it is free while paused. Deleting a RAD-managed project first unlinks its billing, then asks Google to delete the project itself — Google's own 30-day recoverable soft delete. Unlike deleting a single module, this does not tear down the database, any VM, or the compute resource one at a time: the whole project simply stops, and because billing is already unlinked, nothing is charged while it waits.

Restoring — within 30 days, and only by the project's owner — asks Google to undelete the project and reattaches its billing account, then asks you to run Update on each deployment to confirm everything came back. Because nothing was individually destroyed, that Update finds the same resources already there: it is a check, not a rebuild, and an Update never charges the module fee again. The whole restore costs only a handful of credits (under US$1) in build time for a typical chain of deployments. What this needs: you must own the project (not merely have RAD manage its billing), you must restore it yourself within the 30 days — after that Google deletes it for good — and restoring is admitted like creating a new project, so your purchased credit balance must still clear the tier's floor (100 credits for the sandbox tier most study and demo use fits). Google says most services are fully working again within 36 hours of a restore.

One real gap: nightly backups are written to a bucket inside the project, and that bucket has Cloud Storage's soft-delete explicitly turned off, so the backup bucket is very likely gone as soon as you delete the project — even though the project itself is recoverable for 30 days. If you have customised this deployment and want to keep that work, copy a backup out (to Google Drive, or a bucket outside the project) before deleting. For a default install with nothing irreplaceable in it, this does not matter.

Pay only while you use it, the other way: delete and redeploy​

The other lever, for an own project (or a RAD-managed one past its 30-day restore window), is to delete RAGFlow outright and redeploy it later. A redeploy costs the module fee again plus the builds — roughly 113-116 credits in total for this module.

Deleting only saves money once RAGFlow would otherwise sit unused long enough to clear that redeploy cost against its own running cost — for this module, that is about 4 days or more of being idle, based on its own US$101.98/month running cost above. Most of that running cost is usually the database and any shared file/cache VM, and they stop only once nothing else in the project uses them, so deleting this app alone saves only its own compute share if something else shares the project.

Keep data first: nightly backups go to a bucket inside the deployment and are deleted with it, so copy the latest backup out before deleting if you want to keep it.

Lab sessions and Managed Environments​

  • Lab sessions, for training: a trainer runs a session for a class. Each participant gets the app in their own Google Cloud project for 15 minutes to 24 hours, within an allowance the trainer sets. Either the trainer funds every place, or each participant pays for their own. Everything is deleted when the session ends and unused credits go back to the trainer.
  • Managed Environments, for consultancies: a partner runs the app for a client from a ring-fenced wallet it funds, and settles with the client directly. If the wallet runs low, billing pauses and the data is kept, so nobody receives an unexpected charge. At the end the partner hands the project over and the deployments become the client's own.
  • Credits can be bought in more than 20 currencies, including XAF, XOF, NGN, GHS, KES and ZAR, by card, bank transfer or mobile money.

Sources (8 October 2026): Google Cloud Billing Catalog API list prices; radmodules.dev/pricing for RAD's own fees and daily-credit estimates; Resource Manager: delete and restore projects for the pause/restore mechanics.

1. Overview​

RAGFlow runs as a containerised Python/Nginx service on Cloud Run v2. The deployment wires together a focused set of Google Cloud services:

CapabilityGoogle Cloud serviceNotes
ComputeCloud Run v2Custom-built RAGFlow service, 2 vCPU / 4 GiB by default, cold-start (min_instance_count = 0) by default
DatabaseCloud SQL for MySQL 8.0Required — RAGFlow does not support PostgreSQL
Vector searchElasticsearch (Elasticsearch_GKE)External dependency — must be deployed first; elasticsearch_hosts is mandatory
Task queueRedis (Memorystore)Required for document processing workers
Object storageExternal S3-compatible endpointRAGFlow stores every uploaded document in S3-compatible storage. On Cloud Run there is no working default: supply an endpoint with minio_host / minio_user / minio_password_secret. A documents Cloud Storage bucket is also provisioned, but RAGFlow does not use it
SecretsSecret ManagerAuto-generated database password
IngressCloud Run URL / Cloud Load BalancingDefault run.app URL; optional Cloud Armor HTTPS load balancer + custom domain

Sensible defaults worth knowing up front:

  • MySQL 8.0 is mandatory. Selecting PostgreSQL or NONE breaks startup.
  • elasticsearch_hosts is required. RAGFlow cannot index or search documents without a reachable Elasticsearch endpoint. This check is skipped only when deploy_application = false.
  • Document ingestion needs an S3-compatible endpoint you supply. RAGFlow keeps uploaded documents in S3-compatible object storage, one bucket per knowledge base. Set minio_host, minio_user and minio_password_secret (a Secret Manager secret name). enable_inline_minio (a MinIO sidecar on Filestore) is implemented but defaults to false: Cloud Run rejects the quay.io MinIO image unless it is first mirrored into Artifact Registry, and two overlapping revisions sharing one MinIO data directory is an unproven risk. For a working default, use RAGFlow_GKE.
  • Redis is required for document processing. With enable_redis = true (default), REDIS_HOST and REDIS_PORT are injected automatically. If redis_host is left empty, App_CloudRun falls back to the NFS server's IP (the NFS VM co-hosts Redis) — same behavior as the GKE variant. Without a reachable Redis, uploaded files remain unprocessed indefinitely.
  • Cold-start by default. min_instance_count = 0 and cpu_always_allocated = false (request-based billing) — the service scales to zero when idle and only bills CPU while serving a request. Trade-off: the background document task-executor stops when idle, so ingestion/parsing of newly uploaded documents does not run in the background; querying/chat still works on-request. Set cpu_always_allocated = true and min_instance_count >= 1 to restore continuous background ingestion (and avoid the 2–3 minute cold-start while embedding models load).
  • Gen2 execution environment is required for NFS. execution_environment = "gen2" is the default; switching to gen1 with enable_nfs = true fails at plan time.
  • A custom image is always built. Cloud Build extends infiniflow/ragflow using the Dockerfile in RAGFlow_Common/scripts/, with APP_VERSION set from application_version.
  • service_conf.yaml is generated at startup. The custom entrypoint writes /ragflow/conf/service_conf.yaml from injected environment variables before starting the RAGFlow processes. A socat bridge adapts the Cloud SQL Auth Proxy Unix socket to the TCP port that RAGFlow's MySQL client expects.

2. Google Cloud Services & How to Explore Them​

All commands assume PROJECT and REGION are set. Service and resource names are reported in the deployment Outputs.

A. Cloud Run — the RAGFlow service​

RAGFlow runs as a Cloud Run v2 service. By default it scales to zero when idle (min_instance_count = 0, cpu_always_allocated = false); set both to keep an instance warm and avoid cold-start delays during embedding model loading. Each deployment creates an immutable revision; traffic can be split across revisions for safe rollouts.

  • Console: Cloud Run → select the service for revisions, traffic, logs, and metrics.
  • CLI:
    gcloud run services list --project "$PROJECT" --region "$REGION"
    gcloud run services describe <service-name> --project "$PROJECT" --region "$REGION"
    gcloud run revisions list --service <service-name> --project "$PROJECT" --region "$REGION"

See App_CloudRun for scaling, concurrency, execution environment, and traffic splitting.

B. Cloud SQL for MySQL 8.0​

RAGFlow stores all application metadata (user accounts, knowledge bases, task state) in a managed Cloud SQL for MySQL 8.0 instance. The service connects privately through the Cloud SQL Auth Proxy sidecar via a Unix socket. A socat bridge inside the container maps that socket to 127.0.0.1:3306 for RAGFlow's TCP MySQL client. On first deploy an initialization Job creates the application database and user.

  • Console: SQL → select the instance for connections, backups, flags, metrics.
  • CLI:
    gcloud sql instances list --project "$PROJECT"
    gcloud sql instances describe <instance-name> --project "$PROJECT"
    gcloud sql connect <instance-name> --user=<db-user> --project "$PROJECT"

The instance name, database, user, and password secret are in the Outputs. See App_CloudRun for the connection model, backups, and password rotation.

RAGFlow requires an external Elasticsearch instance for document indexing and vector search. Deploy Elasticsearch_GKE separately and pass its elasticsearch_endpoint output as elasticsearch_hosts. The environment variables ELASTICSEARCH_HOSTS and ELASTICSEARCH_USERNAME are injected automatically. Inline Elasticsearch is not supported on Cloud Run.

  • Console: Kubernetes Engine → Workloads → Elasticsearch namespace.
  • CLI:
    # Confirm RAGFlow can reach Elasticsearch (from Cloud Shell or a VPC-connected host):
    curl -s "$ELASTICSEARCH_HOSTS/_cluster/health" | grep status

D. Redis — task queue​

Redis is the backbone of RAGFlow's document processing pipeline. Workers poll Redis for tasks; without it, uploaded files are never parsed, chunked, or embedded. The Memorystore Redis instance is accessed over the VPC via the PRIVATE_RANGES_ONLY VPC egress setting (the default).

  • Console: Memorystore → Redis (if using a managed instance).
  • CLI:
    redis-cli -h <redis-host> ping
    redis-cli -h <redis-host> info keyspace

E. Cloud Storage​

A dedicated Cloud Storage bucket (ragflow-documents) is provisioned for document ingestion and storage. Additional buckets and GCS Fuse volume mounts can be added via storage_buckets and gcs_volumes. The workload service account is granted access automatically.

  • Console: Cloud Storage → Buckets.
  • CLI:
    gcloud storage buckets list --project "$PROJECT"
    gcloud storage ls gs://<documents-bucket>/ # bucket name is in the Outputs

See App_CloudRun for GCS Fuse and CMEK options.

F. Secret Manager​

The database password is stored in Secret Manager and injected into the service at runtime; plaintext never appears in configuration.

  • Console: Security → Secret Manager.
  • CLI:
    gcloud secrets list --project "$PROJECT"
    gcloud secrets versions access latest --secret=<secret-name> --project "$PROJECT"

See App_CloudRun for injection and rotation details.

G. Networking & ingress​

The service is reachable at its run.app URL by default. An external HTTPS load balancer with Cloud Armor WAF, a custom domain, and Cloud CDN can be layered on. VPC egress is set to PRIVATE_RANGES_ONLY by default so Redis and MySQL traffic flows over the private VPC while public egress remains unrestricted.

  • Console: Cloud Run (service URL); Network services → Load balancing.
  • CLI:
    gcloud run services describe <service-name> --region "$REGION" --format='value(status.url)'
    gcloud compute addresses list --project "$PROJECT"

See App_CloudRun.

H. Cloud Logging & Monitoring​

Container logs flow to Cloud Logging; Cloud Run and Cloud SQL metrics flow to Cloud Monitoring, with optional uptime checks and alert policies.

  • Console: Logging → Logs Explorer; Monitoring → Dashboards / Alerting.
  • CLI:
    gcloud run services logs read <service-name> --project "$PROJECT" --region "$REGION" --limit 50

3. RAGFlow Application Behaviour​

  • First-deploy database setup. An initialization Cloud Run Job (mysql:8.0-debian) creates the RAGFlow database (rag_flow) and user (ragflow) before the service starts. It is idempotent and safe to re-run.

  • service_conf.yaml generated at startup. The custom entrypoint generates /ragflow/conf/service_conf.yaml from injected environment variables — including MySQL host/user/database, Elasticsearch endpoint, Redis host/port, and optional credentials — before starting the RAGFlow processes. A socat bridge adapts the Cloud SQL Auth Proxy Unix socket to 127.0.0.1:3306 for RAGFlow's MySQL client.

  • Document processing pipeline. Uploaded documents are queued in Redis and processed asynchronously by RAGFlow's document workers: OCR, chunking, embedding, and indexing into Elasticsearch. Without a reachable Redis and Elasticsearch, files appear uploaded but are never processed.

  • Embedding model loading on startup. RAGFlow downloads and loads embedding models during first boot. The startup probe targets /v1/system/version with a 120-second initial delay and 30 failure retries. Set min_instance_count >= 1 with cpu_always_allocated = true to avoid cold starts and keep background document processing running continuously.

  • Health endpoints. Startup and liveness probes use /v1/system/version. The uptime check (if enabled) targets /v1/health. These return HTTP 200 only when the application is fully initialised.

    Inspect job executions:

    gcloud run jobs list --project "$PROJECT" --region "$REGION"
    gcloud run jobs executions list --job <job-name> --project "$PROJECT" --region "$REGION"

4. Configuration Variables​

Variables are grouped exactly as they appear on the deployment platform. Only settings specific to or notable for RAGFlow are listed; every other input is inherited from App_CloudRun with its standard behaviour.

Group 1 — Project & Identity​

VariableDefaultDescription
project_id(required)Target Google Cloud project.
regionus-central1Region for the service and regional resources.
elasticsearch_hosts(required)Elasticsearch HTTP endpoint (e.g. http://10.0.0.5:9200). Set to the elasticsearch_endpoint output from Elasticsearch_GKE.

Group 2 — Deployment Environment​

VariableDefaultDescription
tenant_iddemoShort suffix that makes resource names unique per environment.
support_users[]Emails granted project access and monitoring alerts.
resource_labels{}Labels applied to all resources.

Group 3 — Application Identity​

VariableDefaultDescription
application_nameragflowBase name for resources. Do not change after first deploy.
display_nameRAGFlowFriendly name shown in the Console.
description(set)Service description.
application_versionv0.13.0RAGFlow image version tag passed as APP_VERSION to Cloud Build; increment to roll out a new version.

Group 4 — Runtime & Scaling​

VariableDefaultDescription
deploy_applicationtrueSet false to provision infrastructure only.
cpu_limit2000mCPU per instance; 4 vCPU or more recommended for production document processing.
memory_limit4GiMemory per instance; 8–16 GiB recommended for production.
cpu_always_allocatedfalseCost-first cold-start default. true restores continuous background document processing between requests.
min_instance_count0Scales to zero when idle. Set ≥ 1 (with cpu_always_allocated = true) to keep the background task-executor and embedding models warm.
max_instance_count1Maximum instances; increase with caution (requires NFS for shared storage).
container_port80RAGFlow's Nginx frontend listens on port 80.
execution_environmentgen2Must remain gen2 — required for NFS mounts.
timeout_seconds600Increase for large document processing requests (max 3600).
enable_cloudsql_volumetrueCloud SQL Auth Proxy sidecar for socket connections.
traffic_split[]Split traffic across revisions for staged rollouts.

Group 5 — Access & Ingress Control​

VariableDefaultDescription
ingress_settingsallWhich networks may reach the service (all, internal, internal-and-cloud-load-balancing).
vpc_egress_settingPRIVATE_RANGES_ONLYRoute private RFC-1918 traffic (Redis, MySQL) through the VPC.
enable_iapfalseRequire Google sign-in via Identity-Aware Proxy.
iap_authorized_users / iap_authorized_groups[]Who may access through IAP.

Group 6 — Environment Variables & Secrets​

VariableDefaultDescription
environment_variables{}Extra non-secret settings. Do not override MYSQL_*, ELASTICSEARCH_*, or REDIS_* — these are injected automatically.
secret_environment_variables{}Map of env var → Secret Manager secret name.
secret_propagation_delay / secret_rotation_period(set)Replication wait / rotation cadence.

Group 7 — Backup & Restore​

VariableDefaultDescription
backup_schedule0 2 * * *Automated backup cron (UTC).
backup_retention_days7Retention; raise for production/compliance.
enable_backup_import / backup_source / backup_uri / backup_formatrestore optionsRestore from a backup on deploy.

Group 8 — CI/CD & Binary Authorization​

Standard App_CloudRun Cloud Build / Cloud Deploy integration — see App_CloudRun. Key inputs: enable_cicd_trigger, github_repository_url, github_token, enable_cloud_deploy, enable_binary_authorization.

Group 9 — Custom SQL Scripts​

enable_custom_sql_scripts, custom_sql_scripts_bucket, custom_sql_scripts_path, custom_sql_scripts_use_root — run SQL from a GCS bucket after provisioning. See App_CloudRun.

Group 10 — Cloud Armor, CDN & Custom Domain​

VariableDefaultDescription
enable_cloud_armorfalseAttach a Cloud Armor WAF policy via a Global HTTPS Load Balancer.
admin_ip_ranges[]CIDRs allowed privileged access.
application_domains[]Custom hostnames for the HTTPS load balancer.
enable_cdnfalseEnable Cloud CDN on the LB backend.

Group 11 — Storage & Filesystem​

VariableDefaultDescription
create_cloud_storagetrueProvision additional GCS buckets. The ragflow-documents bucket is always created.
storage_buckets[{ name_suffix="data" }]Additional GCS bucket configurations.
enable_nfstrueShared Filestore volume. Required for multi-instance deployments and when redis_host is empty (NFS server IP used as fallback Redis host).
nfs_mount_path/mnt/nfsMount path inside the container.
gcs_volumes[]GCS Fuse volumes mounted into the RAGFlow container.
manage_storage_kms_iam / enable_artifact_registry_cmekfalseCMEK options.

Group 12 — Database Backend​

VariableDefaultDescription
database_typeMYSQL_8_0Fixed — do not change.
db_namerag_flowDatabase name. Immutable after first deploy.
db_userragflowApplication user. Immutable after first deploy.
database_password_length32Generated password length (16–64).
enable_auto_password_rotation / rotation_propagation_delay_secoffDB password rotation.
db_host_env_var_name / db_name_env_var_name / db_user_env_var_name / db_port_env_var_name / service_url_env_var_name""Additional env var names under which connection details are injected.

Group 13 — Jobs & Scheduled Tasks​

VariableDefaultDescription
initialization_jobs[]Leave empty to use the built-in db-init Cloud Run Job.
cron_jobs[]Recurring scheduled Cloud Run Jobs.

Group 14 — Observability & Health​

VariableDefaultDescription
startup_probeHTTP /v1/system/version, 120s delay, 30 retriesAllows ample time for embedding model loading on first boot.
liveness_probeHTTP /v1/system/version, 120s delayLiveness probe once startup succeeds.
uptime_check_configdisabledCloud Monitoring uptime check.
alert_policies[]Metric alert policies.

Group 15 — Elasticsearch & Redis​

VariableDefaultDescription
enable_redistrueUse Redis for the document processing task queue. Forwarded unconditionally to App_CloudRun — Redis is wired whether redis_host is set or left empty.
redis_host""Redis endpoint. When left empty, App_CloudRun injects REDIS_HOST = <NFS server IP> as a fallback (identical behavior to the GKE variant, since the NFS VM co-hosts Redis). Set explicitly to point at a different Redis instance (e.g. Memorystore).
redis_port6379Redis port.
redis_auth""Optional Redis auth password (sensitive).
elasticsearch_username""Elasticsearch username. Leave empty when xpack.security.enabled = false.

Group 22 — VPC Service Controls & Audit Logging​

VariableDefaultDescription
enable_vpc_scfalseEnforce a VPC-SC perimeter (requires organization_id).
vpc_cidr_ranges / vpc_sc_dry_run(set)Access level CIDRs / dry-run mode.
enable_audit_loggingfalseDetailed Cloud Audit Logs.

5. Outputs​

Returned on a successful deployment — the quickest way to locate and explore the running resources.

OutputDescription
service_nameCloud Run service name.
service_urlDefault run.app URL of the service.
service_locationRegion the service runs in.
stage_servicesStage-specific service details (Cloud Deploy).
load_balancer_ip / load_balancer_urlExternal HTTPS load balancer IP / URL (when enabled).
database_instance_nameCloud SQL instance name.
database_name / database_userApplication database name / user.
database_password_secretSecret Manager secret holding the DB password.
database_host / database_portDB endpoint / port.
storage_bucketsCreated Cloud Storage buckets.
network_name / network_exists / regionsVPC network, presence, regions.
container_image / container_registryDeployed image and Artifact Registry repo.
monitoring_enabled / monitoring_notification_channels / uptime_check_namesMonitoring status, channels, uptime checks.
initialization_jobsNames of the setup jobs.
deployment_id / tenant_id / resource_prefixNaming identifiers.
project_id / project_numberProject identifiers.
cicd_enabled / github_repository_url / github_repository_owner / github_repository_name / cicd_configurationCI/CD status and details.
artifact_registry_repository / cloudbuild_trigger_name / cloudbuild_trigger_idRegistry and build trigger.
vpc_sc_enabled / vpc_sc_perimeter_name / vpc_sc_dry_run_modeVPC-SC status.
audit_logging_enabled / artifact_registry_cmek_enabledAudit logging and CMEK status.

6. Configuration Pitfalls & Sensible Defaults​

Risk: Critical (data loss / outage / security) — High (service degraded) — Medium (cost or partial degradation) — Low (minor).

SettingSensible valueRiskConsequence if wrong
elasticsearch_hostsrequired — set from Elasticsearch_GKECriticalRAGFlow cannot index or search; all ingestion and retrieval operations fail. Plan is rejected when empty and deploy_application = true.
enable_redistrueCriticalWithout Redis the document processing queue never runs; uploaded files remain unprocessed indefinitely.
database_typeMYSQL_8_0CriticalRAGFlow requires MySQL; PostgreSQL/NONE breaks startup.
enable_cloudsql_volumetrueCriticalRAGFlow connects via Unix socket bridged to TCP by socat; disabling the proxy sidecar causes a database connection failure on startup.
db_name / db_userset onceCriticalImmutable after first deploy; renaming recreates the database/user and destroys data.
enable_backup_importfalse unless restoringCriticalEnabling without a valid backup_uri fails the import job.
redis_hostleave empty to use the NFS-server Redis fallback, or set an explicit Memorystore IPHighWhen redis_host = "" and enable_redis = true, App_CloudRun injects REDIS_HOST = <NFS server IP> (requires enable_nfs = true, the default) — same as the GKE variant. If NFS is disabled and redis_host is left empty, no Redis host is injected and async document workers silently never run.
min_instance_count / cpu_always_allocated1 / true for continuous ingestionHighDefaults are 0 / false (cold-start): background document processing stops while idle and cold starts take 2–3 minutes. Set both for always-on ingestion.
memory_limit4Gi (≥ 8Gi for prod)HighEmbedding models plus the application server require significant RAM; too little causes OOM kills.
vpc_egress_settingPRIVATE_RANGES_ONLYHighMemorystore Redis is on a private VPC IP; wrong egress routing breaks the task queue.
execution_environmentgen2HighNFS mounts require gen2; switching to gen1 with enable_nfs = true fails at plan time.
elasticsearch_username"" or correct userHighIf Elasticsearch security is enabled, leaving this blank causes HTTP 401 and breaks all indexing.
enable_nfstrueHighMulti-instance deployments without shared storage see inconsistent document views across instances.
ingress_settings / enable_iaprestrict for productionHighPublic ingress with no IAP exposes RAGFlow to unauthenticated callers.
max_instance_count1 (increase only with NFS)MediumScaling beyond 1 without NFS causes split-brain document access across instances.
timeout_seconds600MediumLarge document uploads can take several minutes; too short causes 504 timeouts before processing completes.
backup_retention_days7 (raise for prod)MediumToo short for compliance retention.
application_versionv0.13.0MediumIncrementing triggers an image rebuild and revision rollout; verify MySQL schema compatibility for major version jumps.

For the foundation behaviour referenced throughout — service identity, scaling and concurrency, ingress and load balancing, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC-SC, backups, and image mirroring — see App_CloudRun. RAGFlow-specific application configuration shared with the GKE variant is described in RAGFlow_Common.

Need RAD to do something it does not do yet? Request it on the roadmap, or vote on what is already there.