Skip to content

[Question] sync hugegraph data daily with rocksdb, how to handle lots of g/logs #2257

Closed

Description

@xxyp

Problem Type (问题类型)

None

Before submit

  • 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: 0.11.0
  • Backend: 本地RocksDB

Your Question (问题描述)

定时任务往hugegraph里同步数据,使用本地rocksdb存储,在g文件夹了产生了大量日志,要怎么设置才能不让日志占满磁盘呢

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

Activity

  1. changed the title [-]定时任务往hugegraph里同步数据,使用本地rocksdb存储,在g文件夹了产生了大量日志,要怎么设置才能不让日志占满磁盘呢[/-] [+][Question] sync hugegraph data daily with rocksdb, how to handle lots of g/logs[/+] on Jul 26, 2023
  2. imbajin commented on Jul 26, 2023

    @imbajin
    Member

    if u have a lot of rocksdb logs(and u dont't need them), try to just clean it with crontab?

    the old log will be auto truncated by default I remember 🦙

  3. xxyp commented on Jul 26, 2023

    @xxyp
    Author

    定时任务是10分钟同步一次。这个日志的最长保留时间是多少天呀,因为同步的频率太高了,没有及时清理完?
    用crontab清也可以,就是麻烦一点

  4. imbajin commented on Jul 26, 2023

    @imbajin
    Member

    定时任务是 10 分钟同步一次。这个日志的最长保留时间是多少天呀,因为同步的频率太高了,没有及时清理完? 用 crontab 清也可以,就是麻烦一点

    forever if u don't delete it? (by default)

  5. xxyp commented on Jul 26, 2023

    @xxyp
    Author

    那现在除了定时清理之外,没有其他的办法可以设置了,是吗?

  6. locked and limited conversation to collaborators on Aug 5, 2023
  7. converted this issue into a discussion #2267 on Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions