Comments (10)
Hi,
Which is the platform you are using to deploy airflow? Maybe it requires more resources.
from charts.
@javsalgar the k8s cluster has 5 nodes, each 64GB x 2.3 20 core CPU.
I'm running other application such as superset, on the same platform, all loading fine, and the fact docker version of airflow (as indicated above) loads perfectly.
from charts.
Hi @fzhan,
I found this issue in the airflow repo apache/airflow#8907. Could you check it?
from charts.
@Mauraza i've gone through and implemented gevent, and turned off LoadBalancer back to ClusterIP. But it almost feel like the ingress is not telling browser these JS/CSS can be cached.
Below is the docker image, where everything loads in ms:
That's really strange
from charts.
@Mauraza I've added this snippet to ingress annotation and things starts to speed up (load from memory):
annotations:
...
nginx.ingress.kubernetes.io/configuration-snippet: |
if ($request_uri ~* \.(js|css|gif|jpe?g|png)) {
expires 5d;
add_header Cache-Control "public";
}
Not sure if this is worth looking into but there should be some kind of gunicorn config which may / may not worked for requesting page resources.
from charts.
Hi @fzhan,
It's strange... where are you running the chart?
from charts.
on a local microk8s cluster with 5 nodes.
None of the other packages with ingress had issue like this, especially those that uses gunicorn.
from charts.
Hi @fzhan,
Appears some strange events in the kubectl describe
?
from charts.
Name: airflow-web
Namespace: airflow
CreationTimestamp: Wed, 14 Feb 2024 00:28:29 +1100
Labels: app.kubernetes.io/component=web
app.kubernetes.io/instance=airflow
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=airflow
app.kubernetes.io/version=2.0.0
helm.sh/chart=airflow-16.8.2
Annotations: deployment.kubernetes.io/revision: 3
meta.helm.sh/release-name: airflow
meta.helm.sh/release-namespace: airflow
Selector: app.kubernetes.io/component=web,app.kubernetes.io/instance=airflow,app.kubernetes.io/name=airflow
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: app.kubernetes.io/component=web
app.kubernetes.io/instance=airflow
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=airflow
app.kubernetes.io/version=2.0.0
helm.sh/chart=airflow-16.8.2
Annotations: checksum/configmap: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
Service Account: airflow
Containers:
airflow-web:
Image: docker.io/bitnami/airflow:2-debian-11
Port: 8080/TCP
Host Port: 0/TCP
SeccompProfile: RuntimeDefault
Liveness: tcp-socket :http delay=180s timeout=5s period=20s #success=1 #failure=6
Readiness: tcp-socket :http delay=30s timeout=5s period=10s #success=1 #failure=6
Environment:
AIRFLOW_FERNET_KEY: <set to the key 'airflow-fernet-key' in secret 'airflow'> Optional: false
AIRFLOW_SECRET_KEY: <set to the key 'airflow-secret-key' in secret 'airflow'> Optional: false
AIRFLOW_LOAD_EXAMPLES: no
BASH_DEBUG: 1
BITNAMI_DEBUG: true
AIRFLOW_DATABASE_NAME: x
AIRFLOW_DATABASE_USERNAME: x
AIRFLOW_DATABASE_PASSWORD: <set to the key 'password' in secret 'airflow-externaldb'> Optional: false
AIRFLOW_DATABASE_HOST: postgresql-primary.postgres
AIRFLOW_DATABASE_PORT_NUMBER: 5432
REDIS_HOST: redis-master.x
REDIS_PORT_NUMBER: 6379
REDIS_PASSWORD: <set to the key 'redis-password' in secret 'airflow-externalredis'> Optional: false
AIRFLOW_EXECUTOR: CeleryExecutor
AIRFLOW_WEBSERVER_HOST: 0.0.0.0
AIRFLOW_WEBSERVER_PORT_NUMBER: 8080
AIRFLOW_USERNAME: x
AIRFLOW_PASSWORD: <set to the key 'airflow-password' in secret 'airflow'> Optional: false
AIRFLOW_BASE_URL: http://x:8080
AIRFLOW_LDAP_ENABLE: no
AIRFLOW__WEBSERVER__WORKER_CLASS: gevent
AIRFLOW__CODE_EDITOR__ENABLED: True
AIRFLOW__CODE_EDITOR__ROOT_DIRECTORY: /opt/bitnami/airflow/dags
AIRFLOW__CODE_EDITOR__STRING_NORMALIZATION: True
AIRFLOW__CODE_EDITOR__MOUNT: name=logs,path=/opt/bitnami/airflow/logs
_AIRFLOW_PATCH_GEVENT: 1
AIRFLOW__CORE__DEFAULT_TIMEZONE: Australia/Melbourne
AIRFLOW__WEBSERVER__DEFAULT_UI_TIMEZONE: Australia/Melbourne
Mounts:
/bitnami/python/requirements.txt from requirements (rw,path="requirements.txt")
/opt/bitnami/airflow/dags from airflow-dag (rw)
Volumes:
airflow-dag:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: airflow-dags
ReadOnly: false
requirements:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: airflow-requirements
Optional: false
Conditions:
Type Status Reason
---- ------ ------
Available True MinimumReplicasAvailable
Progressing True NewReplicaSetAvailable
OldReplicaSets: <none>
NewReplicaSet: airflow-web-69c54b9bf8 (1/1 replicas created)
Events: <none>
Not really anything strange in the deployment @Mauraza
from charts.
Did you check if it could be related to a DNS problem? (documentation )
from charts.
Related Issues (20)
- [bitnami/elasticsearch] Unable to open ingress access(TLS) HOT 6
- [bitnami/keycloak] is external infinispan cache configuration supported? HOT 4
- [bitnami/mongodb] backoffLimit should be configurable in backup cronjob HOT 1
- [bitnami/redis] error calling concat: runtime error: invalid memory address or nil pointer dereference HOT 1
- [bitnami/thanos] thanos distributor pods goes in crashloopback state. HOT 4
- The script with empty input HOT 3
- [bitnami/oauth2-proxy] subchart redis.replica.replicaCount isn't working HOT 3
- Consumers can't connect - Bootstrap broker disconnected HOT 1
- [bitnami/thanos] thanos helm chart renders strange hostname for sidecarsService dnsDiscovery HOT 7
- [bitnami/postgresql] existingExtendedConfigmap and extendedConfiguration broken since chart v14.2.1 HOT 6
- [bitnami/external-dns] pihole.tlsSkipVerify: true gives an error HOT 3
- [bitnami/elasticsearch] in Dualstack IPv6 & SVC mismatch
- Schema Registry with external Confluent Kafka HOT 1
- Wrong selector in Networkpolicy for Argo Workflows HOT 3
- thanos helm chart does not render with existingObjstoreSecret HOT 11
- Inconsistent defaults for PodMonitor / ServiceMonitor - interval / namespace should be left empty HOT 4
- I want to connect to Redis Sentinel from outside k8s. HOT 6
- [bitnami/schema-registry] Change default file mode to 0600 so that container crash can be recovered HOT 1
- Redis Helm charts not restarted on secret change? HOT 2
- [bitnami/mlflow] GCS Support for MLFlow HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.