gadsme / charts

Gadsme Helm chart repository
Apache License 2.0
44 stars 25 forks source link

No refresh worker logs when running Cube in production mode #42

Open anshjain18 opened 10 months ago

anshjain18 commented 10 months ago

Hi team, Recently I switched my Cube setup to production mode, and noticed that my pre-aggregations were not getting updated as expected. There were no logs whatsoever on either the API instance pod or refresh worker pod. As soon as I switched back to dev mode, logs were coming from refresh worker pod. Is this the expected behaviour, because it would be quite difficult then to debug issues while running Cube in production mode.

This is my values.yaml for Cube

cube:
  image:
    repository: cubejs/cube
    tag: v0.34.40
    pullPolicy: IfNotPresent

  datasources:
    default: 
      type: snowflake
      user: CUBE_DEV_USER
      pass: <PASSWORD>
      schema: PUBLIC
      name: UC_DATA_DEV
      snowFlake:
        account: <ACCOUNT>
        region: ap-southeast-1
        role: <ROLE>
        warehouse: CUBE_POC_WH

  cubestore:
    host: cubestore-dev-router.cubestore
    port: 3030

  config:
    preAggregationsSchema: pre_agg_schema
    debug: true
    logLevel: "debug"
    devMode: false
    rollupOnly: true
    pgSqlPort: 15432
    sqlUser: admin
    sqlPassword: admin
    volumes:
      - name: cube-schema
        configMap:
          name: cube-schema
      - name: cube-config
        configMap: 
          name: cube-config
  1. debug is set to true
  2. logLevel is set to "debug"

@lvauvillier

lvauvillier commented 10 months ago

Hello @anshjain18, we're using a similar configuration and everything is working fine for us.

Could you try adding cacheAndQueueDriver: cubestore to your configuration section? In development mode, the default setting is memory. This change might generate logs that could help identify the error.

anshjain18 commented 10 months ago

Hi @lvauvillier, thanks would add this. Though I can see that the default value for this setting is 'cubestore' only.

lvauvillier commented 10 months ago

Yes, the comments in the chart above the value fields may become outdated, as the Cube documentation is frequently updated. The best is to refer to the official documentation. Most of the environment variables has a direct mapping in the chart values For example, regarding cacheAndQueueDriver, you can refer to: https://cube.dev/docs/reference/configuration/environment-variables#cubejs_cache_and_queue_driver