← 输入框|github.com|刷新
Skip to content

Online store latency (redis) is growing over time #3597

Closed

Description

@RadionBik

Expected Behavior

The online-store latency remains the same and doesn't grow over the time. We assume that amount of data in redis is not growing.

Current Behavior

image

The median latency growth over the past 30 days is on the chart above.

Steps to reproduce

We use a custom aiohttp python service to relay requests to the online-store, where we invoke the native feast client. The service is completely stateless, and I don't expect it to be the source of the problem.

here is our feast config:

config = RepoConfig(
    project='feast',
    registry='gs://our-bucket/feast/registry_file_3.db',
    provider='gcp',
    online_store=RedisOnlineStoreConfig(
        connection_string=get_redis_connection_string(),
        redis_type='redis',
        key_ttl_seconds=REDIS_TTL_SECONDS,
    ),
    offline_store=BigQueryOfflineStoreConfig(
        dataset='feature_store',
        project_id='project-id',
    ),
    entity_key_serialization_version=2,
)

as you see, we use the default registry cache TTL (=600).

Specifications

  • Version: 0.28.0
  • Platform: amd64
  • Subsystem: debian 10

Possible Solution

We noticed that changing the path to file-based registry (i.e. effectively re-creating it) eliminates the latency growth and it back to normal (today's chart):
image

Therefore, a solution might be related to fixing the registry caching mechanism.

Let me know if further details are needed!

Activity

  1. RadionBik commented on Apr 14, 2023

    @RadionBik
    Author

    I have noticed that timestamps of incremental materialization are stored in the registry and are sent to client as well. We run incr. mat. every 15 min, so over month it yields to 30 * 24 * 4 = 2880 timestamps per view, which might explain the gradual increase of the response time. Not sure if it is the reason, but decided to share the info here.

  2. adchia commented on Apr 21, 2023

    @adchia
    Collaborator

    Thanks for filing! do you mean that you changed from the file based registry to have a TTL=0 and it was ok?

  3. RadionBik commented on Apr 21, 2023

    @RadionBik
    Author

    I have never adjusted registry cache TTL, it has always been set to the default value.

  4. nturusin commented on May 5, 2023

    @nturusin

    Hi guys. Any news on this? This issue forces us to update the registry file in production every couple of weeks to reset the latency..

  5. nturusin commented on May 23, 2023

    @nturusin

    Hi @adchia
    Do you have any plans to fix this soon?

  6. RadionBik commented on May 30, 2023

    @RadionBik
    Author

    an update from us:
    having disabled incremental materialization for a week, we do NOT notice increases in latency anymore, which confirms my hypothesis above. As you at the chart below, we recreated the registry and disabled incr. mat. around 25th of May:

    image

    Unfortunately, the cause nor a resolution of it is not obvious for me ATM.

  7. stale commented on Oct 15, 2023

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  8. RadionBik commented on Nov 8, 2023

    @RadionBik
    Author

    we found that logging to feast caused the problem, we disabled it and everything runs without leaks now

  9. removed
    wontfixThis will not be worked on
    on Jan 9, 2024
  10. tokoko commented on Mar 23, 2024

    @tokoko
    Collaborator

    @RadionBik hey, thanks for investigating this, can you clarify the last comments? Did you find that both incremental materialization payload and feast usage were the culprits here?

  11. RadionBik commented on Mar 23, 2024

    @RadionBik
    Author

    I might have left the last comment in a wrong issue.

    So the current status is:

    • we disabled feast's telemetry to help with a memory leak problem we had (not this issue)
    • we do not use incremental materialisation anymore because of the increasing latency problem we reported in this issue

    Hope this clarifies the situation a bit

  12. tokoko commented on Mar 28, 2024

    @tokoko
    Collaborator

    @RadionBik thanks for the clarification

  13. stale commented on Apr 26, 2025

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions