ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1729

Add l4w command "snap" to trigger log rotation and snapshotting

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: server
    • Labels:
      None

      Description

      "snap" command can be used to trigger log rotate and snapshotting on each server.

      One use case for this command is to make server restart faster by issuing snap command before restarting the server. This help when txnlog is large (due to txn size or number of txn)

      snap is a blocking command, it will return when snapshot is written to disk. So it is safe to call this prior to restarting the server.

        Issue Links

          Activity

          Hide
          Patrick Hunt added a comment -

          Adding to JMX would also make sense imo (less familiar with the security support there though)

          Show
          Patrick Hunt added a comment - Adding to JMX would also make sense imo (less familiar with the security support there though)
          Hide
          Patrick Hunt added a comment -

          I'm fine to add this, but not as a 4lw. 4lw are read-only operations due to the lack of security. Keep in mind 4lw also shares the same port as the client port.

          We should add this to the Jetty implementation (ZOOKEEPER-1346) which can have proper security/auth constraints.

          Show
          Patrick Hunt added a comment - I'm fine to add this, but not as a 4lw. 4lw are read-only operations due to the lack of security. Keep in mind 4lw also shares the same port as the client port. We should add this to the Jetty implementation ( ZOOKEEPER-1346 ) which can have proper security/auth constraints.
          Hide
          Thawan Kooburat added a comment -

          Possible code conflict due to refactoring

          Show
          Thawan Kooburat added a comment - Possible code conflict due to refactoring
          Thawan Kooburat made changes -
          Field Original Value New Value
          Link This issue is blocked by ZOOKEEPER-1346 [ ZOOKEEPER-1346 ]
          Thawan Kooburat created issue -

            People

            • Assignee:
              Thawan Kooburat
              Reporter:
              Thawan Kooburat
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development