Changes between Version 3 and Version 4 of RemoteInputFiles
- Timestamp:
- Feb 5, 2013, 12:04:38 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RemoteInputFiles
v3 v4 12 12 job submitters to place files on the BOINC server. 13 13 14 Each of these mechanisms deals with twoissues:14 Each of these mechanisms deals with several issues: 15 15 16 16 * '''File immutability''': BOINC requires that a file … … 22 22 * File cleanup: There must be some way to clean up 23 23 files on the server when they are no longer needed. 24 * Authorization: only users authorized to submit jobs 25 should be able to move files to the server. 26 27 Note: both mechanisms upload files via PHP. 28 PHP's default max file upload size is 2MB. 29 To increase this, edit /etc/php.ini, and change, e.g. 30 {{{ 31 upload_max_filesize = 64M 32 post_max_size = 64M 33 }}} 24 34 25 35 == Content-based file management == … … 57 67 Inputs: 58 68 * '''project_url''': the project's master URL 59 * '''authenticator''': the job submitter's authenticator 69 * '''authenticator''': the job submitter's authenticator. 60 70 * '''paths''': a list of file paths on the calling host. 61 71 * '''md5s''': a list of the MD5s of the files. 62 72 * '''batch_id''': the ID of a batch whose jobs will reference the files 63 73 (these jobs need not exist yet). 74 The operation will fail if the user is not authorized to 75 submit jobs to the batch's application. 64 76 65 77 Action: for each file, see if it exists on the server. … … 85 97 * '''paths''': a list of paths of files to be uploaded 86 98 * '''md5s''': a list of MD5 hashes of these files 87 * '''batch_id''': the ID of a batch with which the files are associated 99 * '''batch_id''': the ID of a batch with which the files are associated. 100 The operation will fail if the user is not authorized to 101 submit jobs to the batch's application. 88 102 89 103 Action: Upload the files, and create associations to the given batch. … … 99 113 == Per-user file sandbox == 100 114 115 This mechanism allows job submitters to explicitly 116 upload files via a web interface: PROJECT_URL/sandbox.php. 117 118 Links to the files are stored in a "sandbox directory" 119 PROJECT_ROOT/sandbox/USERID/. 120 The entries in this directory have contents 121 {{{ 122 size MD5 123 }}} 124 125 The actual files are stored in the download directory, 126 under the name '''sb_userid_MD5'''. 127 128 Currently, files in the sandbox are not cleanup up automatically. 129 The web interface allows users to delete their files.