ruojieranyishen commented on PR #1511:
URL: 
https://github.com/apache/incubator-pegasus/pull/1511#issuecomment-1588401195

   
   ![replica具体创建过程 
(2)](https://github.com/apache/incubator-pegasus/assets/93246280/01a542e0-8359-4891-9c6e-44fbe4fe6c01)
   
   This is the specific creation process of replica, including my two 
modifications. Respectively deal with creating a new rocksdb and restarting 
rocksdb.
   ### Key Process:
   1. new replica : Create a replica, which contains env information 
num_levels=5, and the actual rocksdb has not been created
   2. store_app_info(_app_info) : Persist app_info information to .app_info file
   3. _app.reset(replication_app_base::new_storage_instance(_app_info.app_type, 
this)); :Construct pegasus_server_impl. Parameter this pointer is replica*, 
which contains env information num_levels=5.
   4. pegasus_server_impl::pegasus_server_impl :Construct pegasus_server_impl. 
Initialize rocksdb option via FLAGS_rocksdb_*
   5. update_app_envs_before_open_db(envs); :Make the env information effective 
before creating the rocksdb instance.
   6. reset_usage_scenario_options : Load rocksdb option from OPTION-XXXXX file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to