Changes between Version 322 and Version 323 of ippToPsps
- Timestamp:
- Apr 10, 2012, 1:17:36 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ippToPsps
v322 v323 207 207 }}} 208 208 209 It is usual to run instances of {{{loader.py}}} in a screen session. 210 209 211 The first thing a {{{loader.py}}} instance does is look to the queue tables in the {{{ippToPsps}}} database for a list of items to process. It first attempts to secure a 'stripe' of RA (from the [wiki:ippToPsps_Database#Thestripetable stripe table]) that is not being processed by any other {{{loader.py}}} clients. If all available stripes have already been reserved, then it chooses the stripe with the largest number of pending items. 210 212 … … 223 225 Because it is possible, and usual, to run multiple versions of {{{loader.py}}} (in order to speed up loading time), the method to begin processing a new batch is part of a critical section. This simply means that the 'batch' table in the {{{ippToPsps}}} database is locked by a client looking for a new item to process, then released afterwards, ensuring that two separate {{{loader.py}}} instances do not attempt to process the same item. 224 226 225 it is usual to run instances of {{{loader.py}}} in a screen session.226 227 === Test mode === 227 228
