Table of Contents

This page provides information about manual V-Ray upload.


Overview


One of the options to add V-Ray to a peer with Swarm is to import or to upload V-Ray manually to this Swarm peer. 



Upload through Web UI


You can upload V-Ray versions manually via the Swarm Web UI. 

  1. Navigate to http://localhost:1113/versions.
  2. Click the Upload V-Ray button and select a file to upload. The file can be an archive or an installer. 


Supported V-Ray distributions App SDK 
Supported archive formats are - ZIP, 7Z, TAR, XZ, GZ, BZ2 and obvious combinations like TAR.GZ and similar.
Supported installers - MacOS - DMG and Windows - EXE. Make sure that the swarm.yaml file is set to allowExecutables: true to allow the installer type.


Delete – Deletes the V-Ray version. If the V-Ray version is “linked” (its meta-file in the appropriate directory inside <data-directory>/VRay/ refers to some V-Ray located somewhere else), only the entry in the Swarm’s <data-dir>/VRay/ will be deleted, the original V-Ray won’t be deleted.





Copy to Import Directory


Another way for manual upload is by placing the archive or installer in the <data-directory>/VRay/import/ directory.

When V-Ray is uploaded, its original file is copied to <data-directory>/VRay/import/ directory by default. Swarm tracks this directory, locates any new V-Ray versions, and attempts to import them automatically. The uploadsQueuePeriod setting in the swarm.yaml file is set to 10 seconds by default. This determines the intervals in which the directory is checked for new V-Ray versions. 



System Administrator Distribution


System administrators can easily distribute V-Ray versions among all peers using a shared directory:

  1.  The system administrator creates a shared directory and puts all V-Ray distributions there.
  2. Sets all peers' vrayImportDir setting in the swarm.yaml file to point to the shared directory. 
  3. Within approximately 10 seconds, Swarm locates the files and tries to deploy them. In this way, all peers can get V-Ray versions.




Was this helpful?