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

webapi implementation: use NFS #133

Open
joschrew opened this issue Oct 10, 2022 · 3 comments
Open

webapi implementation: use NFS #133

joschrew opened this issue Oct 10, 2022 · 3 comments
Assignees

Comments

@joschrew
Copy link

joschrew commented Oct 10, 2022

NFS should be used to exchange data between processors.
Goal of this ticket is to create an NFS-share on one of my vm's and use it as workspace directory for the webapi and for the processing servers to access the workspaces.

@joschrew joschrew self-assigned this Oct 10, 2022
@joschrew
Copy link
Author

joschrew commented Nov 8, 2022

Set up instructions for NFS

  • server:
    • install NFS:
      • sudo apt install nfs-kernel-server
    • create destination folder (folder to be shared):
      • mkdir /home/cloud/nfs-shares/ocrd-webapi
    • create or modify /etc/exports:
      • every client has to be mentioned here. ip ranges are possible, but not used in this
        example. In this example, the nfs is created in a private network between my vm's
      • /home/cloud/nfs-shares/ocrd-webapi 10.254.1.4/24(rw,sync,no_subtree_check) 10.254.1.29/24(rw,sync,no_subtree_check)
    • update services:
      • sudo systemctl restart nfs-kernel-server
      • perhaps it is not enough to just restart the mentioned nfs-service (if it is not possible
        to mount on the client-side). In this case vm has to be restarted
  • client:
    • install:
      • sudo apt install nfs-common
    • create destination folder:
      • mkdir ~/nfs-ocrd-webapi
    • mount the nfs:
      • sudo mount -t nfs4 <nfs-server-ip-adress>:/home/<user>/nfs-shares/ocrd-webapi /home/<user>/nfs-ocrd-webapi

@joschrew
Copy link
Author

joschrew commented Nov 8, 2022

Does not make sense for me yet to use NFS because all processors will run at one machine. Is it possible to get an NFS Share from gwdg?

@tdoan2010
Copy link

You set up all processors on one machine for testing, but in a real life, they run on different machines. That's why NFS is needed. You can set up your own NFS or simply get one from GWDG, it doesn't matter.

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