Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-defaultReplication does not work for webdav uploads #1817

Closed
Derkades opened this issue Feb 18, 2021 · 2 comments
Closed

-defaultReplication does not work for webdav uploads #1817

Derkades opened this issue Feb 18, 2021 · 2 comments

Comments

@Derkades
Copy link
Contributor

Derkades commented Feb 18, 2021

Filer -defaultReplicaPlacement is not specified so it should use master setting (I think?)

Master command line is master ip=10.131.1.1 -defaultReplication=100 -mdir=/data -volumeSizeLimitMB=1000
For filer: filer -master="10.131.1.1:9333" -ip=10.131.1.1 -dataCenter=robin -defaultStoreDir=/data
Volume servers:
volume -mserver="10.131.1.1:9333" -ip="10.131.1.1" -port=8080 -dir=/data -dataCenter=robin -rack=server -max=20
volume -mserver="10.131.1.1:9333" -ip="10.131.2.1" -port=8080 -dir=/data -dataCenter=joshua -rack=pi -max=20

Steps:

  • Clear all directories of master, filer, and volume servers
  • Start everything
  • Topology shows my two servers in two "data centers"
    image
  • Confirm volume servers are empty
    image
  • Upload a single file using webdav
    image
  • Check volume server interface again (the one in the same "data center" as filer). Now shows volumes
    image
  • Enter weed shell and run replication
    dexec master weed shell -master 10.131.1.1:9333 -filer 10.131.1.1:8888
    master: 10.131.1.1:9333 filer: 10.131.1.1:8888
    > lock
    > volume.fix.replication
    
    Nothing happens
  • Set replication manually for a volume and try again
    > volume.configure.replication -volumeId 4 -replication 100
    > volume.fix.replication
    replicating volume 4 100 from 10.131.1.1:8080 to dataNode 10.131.2.1:8080 ...
    
    it works!

Am I misunderstanding how -defaultReplication works or is this a bug?

@chrislusf
Copy link
Collaborator

webdav data is uploaded to volume servers directly, and currently do not have replication options yet.

https://github.com/chrislusf/seaweedfs/blob/master/weed/server/webdav_server.go#L384

@Derkades Derkades changed the title -defaultReplication does not seem to work -defaultReplication does not work for webdav uploads Feb 18, 2021
@Derkades
Copy link
Contributor Author

epic! your response time is amazing, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants