Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anshjain18 opened this issue Jan 24, 2024 · 3 comments
Open

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

anshjain18 opened this issue Jan 24, 2024 · 3 comments

Comments

@anshjain18
Copy link

anshjain18 commented Jan 24, 2024

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
Copy link
Collaborator

lvauvillier commented Jan 24, 2024

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
Copy link
Author

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

@lvauvillier
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants