Code Monkey home page Code Monkey logo

Comments (5)

amarts avatar amarts commented on June 5, 2024

This is not a use case which is supported by Gluster. Gluster has some internal data which gets added along with the file when created using mountpoint. They will be missing when the file gets added directly.

from kadalu.

et21w avatar et21w commented on June 5, 2024

This is not a use case which is supported by Gluster. Gluster has some internal data which gets added along with the file when created using mountpoint. They will be missing when the file gets added directly.

Besides Gluster's own support, is this issue related to the type of kadaluStorage? Because in another k8s cluster, I created kadaluStorage using the replica2 and replica3 types, and I directly uploaded files to the mount paths of these two types of servers. They were able to be read normally in the pod.Or, this issue is only caused by the characteristics of Glusterfs when a single node uses Gluster to store files?

from kadalu.

vatsa287 avatar vatsa287 commented on June 5, 2024

This is not a use case which is supported by Gluster. Gluster has some internal data which gets added along with the file when created using mountpoint. They will be missing when the file gets added directly.

Besides Gluster's own support, is this issue related to the type of kadaluStorage? Because in another k8s cluster, I created kadaluStorage using the replica2 and replica3 types, and I directly uploaded files to the mount paths of these two types of servers. They were able to be read normally in the pod.Or, this issue is only caused by the characteristics of Glusterfs when a single node uses Gluster to store files?

Yes it might be because of type of kadalustorage selected.
Replica1 is equivalent to pure distribute type in glusterfs, and requires the data to be set through client side for it to be placed in a algo based(through dht translator) predictable path to store and retrieve from nodes, which might not be the case with replicas as all data is stored in all nodes.

But anyway as @amarts stated, here storage use case is to store the data from client side and retrieve from server nodes.

from kadalu.

et21w avatar et21w commented on June 5, 2024

This is not a use case which is supported by Gluster. Gluster has some internal data which gets added along with the file when created using mountpoint. They will be missing when the file gets added directly.

Besides Gluster's own support, is this issue related to the type of kadaluStorage? Because in another k8s cluster, I created kadaluStorage using the replica2 and replica3 types, and I directly uploaded files to the mount paths of these two types of servers. They were able to be read normally in the pod.Or, this issue is only caused by the characteristics of Glusterfs when a single node uses Gluster to store files?

Yes it might be because of type of kadalustorage selected. Replica1 is equivalent to pure distribute type in glusterfs, and requires the data to be set through client side for it to be placed in a algo based(through dht translator) predictable path to store and retrieve from nodes, which might not be the case with replicas as all data is stored in all nodes.

But anyway as @amarts stated, here storage use case is to store the data from client side and retrieve from server nodes.

Okay, thank you very much

from kadalu.

amarts avatar amarts commented on June 5, 2024

This is not a use case which is supported by Gluster. Gluster has some internal data which gets added along with the file when created using mountpoint. They will be missing when the file gets added directly.

Besides Gluster's own support, is this issue related to the type of kadaluStorage? Because in another k8s cluster, I created kadaluStorage using the replica2 and replica3 types, and I directly uploaded files to the mount paths of these two types of servers. They were able to be read normally in the pod.Or, this issue is only caused by the characteristics of Glusterfs when a single node uses Gluster to store files?

That works because replica2 (or replica3) does a self-heal logic). In case of replica1 (or is called distribute), which doesn't come with any self-heal logic, and hence in that case, the backend writing is not supported.

But in general, its a good practise to never write directly to backend. (think of you updaing a xfs / ext4 block directly while FS is mounted, it would corrupt the system).

from kadalu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.