Mudanças entre as edições de "Dataverse:Storage"

De BrapciWiki
Ir para navegação Ir para pesquisar
 
Linha 21: Linha 21:
 
  ./asadmin create-jvm-options "-Ddataverse.files.s3.bucket-name=<your_bucket_name>"
 
  ./asadmin create-jvm-options "-Ddataverse.files.s3.bucket-name=<your_bucket_name>"
  
'''New JVM Options for file storage drivers'''
+
===New JVM Options for file storage drivers===
The JVM option dataverse.files.file.directory=<your directory> controls where temporary files are stored (in the /temp subdir of the defined directory),  
+
The JVM option to controls where temporary files are stored (in the /temp subdir of the defined directory),  
 +
dataverse.files.file.directory=<your directory>
 
independent of the location of any 'file' store defined above.
 
independent of the location of any 'file' store defined above.
 
  The JVM option dataverse.files.<id>.upload-redirect enables direct upload of files added to a dataset to the S3 bucket. (S3 stores only!)
 
  The JVM option dataverse.files.<id>.upload-redirect enables direct upload of files added to a dataset to the S3 bucket. (S3 stores only!)

Edição atual tal como às 18h40min de 24 de janeiro de 2022

== Configuração para multiplos armazenamento --

       <jvm-options>-Ddataverse.files.file.1.type=file</jvm-options>
       <jvm-options>-Ddataverse.files.file.1.label=Home Storage</jvm-options>
       <jvm-options>-Ddataverse.files.file.1.directory=/usr/home/dataverse/files</jvm-options>

Alterar o Local de Armazenamento padrão

       <jvm-options>-Ddataverse.files.directory=/data/disk_data/temp</jvm-options>
       <jvm-options>-Ddataverse.files.file.type=file</jvm-options>
       <jvm-options>-Ddataverse.files.file.label=Disco de Dados</jvm-options>
       <jvm-options>-Ddataverse.files.file.directory=/data/disk_data/files</jvm-options>
       <jvm-options>-Ddataverse.files.file2.type=file</jvm-options>
       <jvm-options>-Ddataverse.files.file2.label=Disco Principal (16G)</jvm-options>
       <jvm-options>-Ddataverse.files.file2.directory=/usr/home/dataverse/files</jvm-options>

S3

./asadmin create-jvm-options "\-Ddataverse.files.s3.type=s3"
./asadmin create-jvm-options "\-Ddataverse.files.s3.label=s3"
./asadmin delete-jvm-options "-Ddataverse.files.s3-bucket-name=<your_bucket_name>"
./asadmin create-jvm-options "-Ddataverse.files.s3.bucket-name=<your_bucket_name>"

New JVM Options for file storage drivers

The JVM option to controls where temporary files are stored (in the /temp subdir of the defined directory),

dataverse.files.file.directory=<your directory> 

independent of the location of any 'file' store defined above.

The JVM option dataverse.files.<id>.upload-redirect enables direct upload of files added to a dataset to the S3 bucket. (S3 stores only!)
The JVM option dataverse.files.<id>.ingestsizelimit controls the maximum size of files for which ingest will be attempted, for the given file store.

Importante

chown payara:payara /usr/home/dataverse/files
chown payara:payara /data/disk_data/files
chown payara:payara /data/disk_data/temp

-Ddataverse.files.directory -> Diretório TEMP