- Add learnerRecoverTimeoutSeconds parameter for cluster settings
- Update command line interface to accept learner recovery timeout
- Enhance API to parse and handle learnerRecoverTimeoutSeconds
- Modify cluster view to display learnerRecoverTimeoutSeconds status
- Implement logic to set learnerRecoverTimeoutSeconds in cluster
This commit enhances cluster management by allowing configuration of
the learner mode recovery timeout, improving the system's resilience
during decommissioning processes.
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Introduce enableMpDecommissionByLearner flag for cluster settings
- Update command line interface to accept new parameter
- Enhance API to parse and handle enableMpDecommissionByLearner
- Modify cluster view to display enableMpDecommissionByLearner status
- Implement logic to set enableMpDecommissionByLearner in cluster
This commit enhances cluster management capabilities by allowing
configuration of the mp decommissioning behavior.
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Add constants for learner operations
- Implement commands to add and promote learners in meta partitions
- Update API routes for learner management
- Enhance logging for learner operations
- Modify data structures to include learner information
- Ensure proper error handling for learner operations
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Add cost tracking to connection pool objects
- Implement SetUseCostPool method for connection pool
- Update connection handling to utilize cost in PutConnectV2
- Introduce PoolInterface for improved pool management
- Create PoolWithCost for managing connections based on cost
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Add sync.Once to Dir struct for lazy initialization
- Implement lazy loading of child directories in Lookup method
- Update InodeGet to use InodeGetExt_ll for better performance
- Modify extents handling logic in InodeGet method
- Rename getExtetnsPool to GetExtetnsPool for consistency
Signed-off-by: [Your Name] <your.email@example.com>
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Change DefaultInodeExpiration from 120s to 300s
- Comment out unused cache clearing logic in Release method
- Update logging in Lookup method to include extents information
- Modify ReadDir and ReadDirAll methods to use BatchInodeGetExtents
- Add extents handling in File methods for better cache management
- Introduce BatchInodeGetExtents method in MetaWrapper for batch processing
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
- Implement TcpAliveTime option in mount options
- Set TCP keep-alive time for stream and ahead read connection pools
- Update connection pool to accept timeout and minimum capacity parameters
Signed-off-by: Victor1319 <zengxuewei@oppo.com>