Skip to contentSkip to conversation

Filestore without journal

DISCUSSION changtao381 2 participants 2 messages Dec 9, 2015

lore
Share & tools
lore
#0 lore raw

Hi Cephers,

Why it is use journal with Filestore ? From my understand, it is used to prevent partial write.

In my view ,it is needn't journal for Filestore as to the scenario for EC backend and for RGW object storage application.

For EC backend, it just now only have write full and append write, truncate operations which already has rollback mechanism

For RGW application, it only has append write.

So, in my opinion, it should develop a type of filestore with no journal, and it writes data using aio which directly persisted data to disk. And the performance are also very good for large io.

Am I right? Thanks!

#1 lore raw
Quoted 11 lines · On Wed, 9 Dec 2015, changtao381 wrote:

Hi Cephers,

Why it is use journal with Filestore ? From my understand, it is used to prevent partial write.

In my view ,it is needn't journal for Filestore as to the scenario for EC backend and for RGW object storage application.

For EC backend, it just now only have write full and append write, truncate operations which already has rollback mechanism

Quoted 7 lines

For RGW application, it only has append write.

So, in my opinion, it should develop a type of filestore with no journal, and it writes data using aio which directly persisted data to disk. And the performance are also very good for large io.

Am I right? Thanks!

In theory, yes. In reality, no--this isn't how the FileStore was implemented and it would take significant work to make it behave this way.

Note that we are focusing our efforts instead on new implementations of the ObjectStore interface instead of investing time in rearchitecting FileStore (which, although slow, is known to be stable).

sage