Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | [SERVER] Make sure bgrWindowSize doesn't overwhelm uplink queue | Simon Rettberg | 2020-03-17 | 2 | -0/+6 | |
| | | ||||||
| * | [SERVER] Include build type and version in RPC | Simon Rettberg | 2020-03-17 | 4 | -8/+16 | |
| | | | | | | | | Added new query type q=version, which uses the STATS access rights. | |||||
| * | [SERVER] Don't prefetch across hash blocks in BGS_HASHBLOCK mode | Simon Rettberg | 2020-03-17 | 1 | -5/+8 | |
| | | ||||||
| * | [SERVER] threadpool: Simplify get code, make debug code _DEBUG only | Simon Rettberg | 2020-03-14 | 1 | -4/+7 | |
| | | ||||||
| * | [SERVER] Remove uplink_ prefix from static (private) functions | Simon Rettberg | 2020-03-14 | 1 | -40/+40 | |
| | | ||||||
| * | [SERVER] Add comments, assert for uplink thread | Simon Rettberg | 2020-03-14 | 1 | -6/+20 | |
| | | ||||||
| * | [SERVER] Use image:rid in log messages | Simon Rettberg | 2020-03-14 | 1 | -5/+5 | |
| | | ||||||
| * | [SERVER] Check server version before setting hopCount field | Simon Rettberg | 2020-03-13 | 1 | -1/+1 | |
| | | ||||||
| * | [SERVER] Check and increase hopCount when adding uplink request | Simon Rettberg | 2020-03-13 | 1 | -4/+7 | |
| | | ||||||
| * | [SERVER] Rewrite uplink queue handling | Simon Rettberg | 2020-03-13 | 9 | -395/+518 | |
| | | | | | | | | | | | | - Now uses linked lists instead of huge array - Does prefetch data on client requests - Can have multiple replication requests in-flight | |||||
| * | [SERVER] Fix data type | Simon Rettberg | 2020-03-09 | 1 | -2/+2 | |
| | | ||||||
| * | [SERVER] Fix: Image would be assumed complete if no uplink exists | Simon Rettberg | 2020-03-06 | 1 | -1/+1 | |
| | | | | | | | | Severe data corruption on client. Nice. | |||||
| * | [SERVER] Add printf macro for image (name:rid as %s:%d) | Simon Rettberg | 2020-03-06 | 4 | -30/+27 | |
| | | ||||||
| * | [SERVER] Handle "warn unused result" cases | Simon Rettberg | 2020-03-06 | 6 | -10/+26 | |
| | | ||||||
| * | [SERVER] Reload cache maps periodically for local images | Simon Rettberg | 2020-03-06 | 3 | -49/+93 | |
| | | | | | | | | | | | | If an image is incomplete, but has no upstream server that can be used for replication, reload the cache map from disk periodically, in case some other server instance is writing to the image. | |||||
| * | [SERVER] Add timer task for saving cache maps | Simon Rettberg | 2020-03-04 | 7 | -76/+168 | |
| | | | | | | | | | | | | | | | | | | Cache maps will now be saved periodically, but only if either they have a "dirty" bit set, which happens if any bits in the map get cleared again (due to corruption), or if new data has been replicated from an uplink server. This either means at least one byte received and 5 minutes have passed, or at least 500MB have been downloaded. The timer currently runs every 20 seconds. | |||||
| * | [SERVER] Likewise, get rid of same loops in client handler | Simon Rettberg | 2020-03-04 | 2 | -51/+39 | |
| | | ||||||
| * | [SERVER] Get rid of two loops in image_updateCacheMap | Simon Rettberg | 2020-03-03 | 1 | -22/+18 | |
| | | ||||||
| * | [SERVER] Optimize client handler for CMD_GET_BLOCK | Simon Rettberg | 2020-03-03 | 1 | -25/+43 | |
| | | | | | | | | | | | | | | | | Move CMD_GET_BLOCK out of switch block and mark as likely. Don't acquire and release cache map for every single request, but keep reference around and only release when a message other than CMD_GET_BLOCK arrives. On idle links, this should happen through CMD_KEEPALIVE every now and then. | |||||
| * | [SERVER] Expose image->problem bools as bitmask in RPC json data | Simon Rettberg | 2020-03-03 | 2 | -4/+13 | |
| | | ||||||
| * | [SERVER] Also add a flag for uplink queue overload | Simon Rettberg | 2020-03-03 | 3 | -8/+16 | |
| | | ||||||
| * | [SERVER] Remove "working" flag, introduce fine-grained flags | Simon Rettberg | 2020-03-03 | 6 | -158/+197 | |
| | | | | | | | | | | | | | | | | Tracking the "working" state of images using one boolean is insufficient regarding the different ways in which providing an image can fail. Introduce separate flags for different conditions, like "file not readable", "file not writable", "no uplink server available", "file content has changed". | |||||
| * | [SERVER] altservers: Fix missing index mapping (replication) | Simon Rettberg | 2020-02-26 | 1 | -1/+1 | |
| | | ||||||
| * | [SERVER] Introduce ignoreAllocErrors | Simon Rettberg | 2020-02-24 | 3 | -2/+16 | |
| | | | | | | | | | | If enabled, a failed fallocate will not abort image replication, but retry with sparse mode. | |||||
| * | [SERVER] Lookup image on storage even in proxy mode | Simon Rettberg | 2020-01-28 | 1 | -8/+11 | |
| | | | | | | | | | | | | | | In proxy mode, when rid 0 is requested, we now first query our uplink servers for the latest revision and if this fails, like in non-proxy mode, we'll see what the latest version on disk is. | |||||
| * | [SERVER] Fix another nullpointer access | Simon Rettberg | 2019-10-30 | 1 | -1/+3 | |
| | | ||||||
| * | [SERVER] Fix checking images without cache map | Simon Rettberg | 2019-10-29 | 3 | -10/+14 | |
| | | ||||||
| * | Merge branch 'master' into atomic | Simon Rettberg | 2019-10-28 | 1 | -1/+0 | |
| |\ | ||||||
| * | | [*] Fix/simplify checks for linux | Simon Rettberg | 2019-09-17 | 2 | -3/+3 | |
| | | | ||||||
| * | | [SERVER] rpc: Fix warnings | Simon Rettberg | 2019-09-11 | 1 | -2/+2 | |
| | | | ||||||
| * | | [*] Use __attribute__((packed)) instead of #pragma pack | Simon Rettberg | 2019-09-11 | 1 | -15/+5 | |
| | | | ||||||
| * | | [SERVER] Make buffer when reading for crc check larger | Simon Rettberg | 2019-09-11 | 1 | -1/+1 | |
| | | | ||||||
| * | | [SERVER] Make integrity checks on startup async | Simon Rettberg | 2019-09-10 | 3 | -31/+37 | |
| | | | ||||||
| * | | Fix compilation on older gcc | Simon Rettberg | 2019-09-09 | 1 | -2/+2 | |
| | | | ||||||
| * | | [SERVER] Fix warning on clang | Simon Rettberg | 2019-09-07 | 1 | -6/+1 | |
| | | | ||||||
| * | | [SERVER] picohttpparser: Merge 81fe3d99fd90a55cafb993e53fd3000dbc4d564c | Simon Rettberg | 2019-09-07 | 1 | -21/+46 | |
| | | | ||||||
| * | | [SERVER] rpc: Add cachemap feature | Simon Rettberg | 2019-09-06 | 4 | -1/+63 | |
| | | | ||||||
| * | | [SERVER] Introduce autoFreeDiskSpaceDelay | Simon Rettberg | 2019-09-05 | 3 | -6/+27 | |
| | | | | | | | | | | | | | | | | | | | | | | | | This setting allows you to control the formerly hard-coded timeout of 10 hours before a proxy would start deleting old images in order to free up space for new images. Setting it to -1 entirely disables automatic deletion, in case you have an external process for freeing up disk space. | |||||
| * | | [SERVER] integrity checker: Improve flushing logic | Simon Rettberg | 2019-09-05 | 2 | -90/+111 | |
| | | | ||||||
| * | | [SERVER] Support limiting alt-servers to specific namespace | Simon Rettberg | 2019-09-04 | 5 | -18/+49 | |
| | | | | | | | | | | | | | | | | | | Not really namespace but simple string matching for the image path. Path is matched from start with no support for glob or regex, so usually you want to have a trailing '/' to limit to certain directories. | |||||
| * | | [SERVER] Fix altservers_getListForClient() | Simon Rettberg | 2019-09-04 | 3 | -6/+66 | |
| | | | | | | | | | | | | | | | The score wasn't reset when adding clients to the list, resulting in exactly one server filling up the whole list. | |||||
| * | | [SERVER] Fix indentation | Simon Rettberg | 2019-09-03 | 1 | -4/+4 | |
| | | | ||||||
| * | | [SERVER] Fix image_updateCachemap() | Simon Rettberg | 2019-09-03 | 1 | -4/+8 | |
| | | | ||||||
| * | | [SERVER] Move signal init to uplink_init | Simon Rettberg | 2019-09-02 | 1 | -10/+11 | |
| | | | | | | | | | | | | | | | | | | | | | Initializing the signal in the thread lead to a race where we would init the uplink and queue a request for it before the thread actually initialized it. This was not harmful but lead to spurious warnings in the server's log. | |||||
| * | | [SERVER] uplink: Don't disable already disabled image | Simon Rettberg | 2019-09-02 | 1 | -1/+1 | |
| | | | ||||||
| * | | [SERVER] Fix compiler warnings | Simon Rettberg | 2019-09-02 | 3 | -5/+5 | |
| | | | ||||||
| * | | [SERVER] uplink: Don't reinit uplink when freeing it | Simon Rettberg | 2019-09-02 | 1 | -13/+3 | |
| | | | ||||||
| * | | [SERVER] Less debug spam, fix RTT interval calculation | Simon Rettberg | 2019-08-30 | 1 | -3/+5 | |
| | | | ||||||
| * | | [SERVER] Introduce debug spam | Simon Rettberg | 2019-08-30 | 2 | -9/+9 | |
| | | | ||||||
| * | | [SERVER] No uplink_init when checking working state; improve logging | Simon Rettberg | 2019-08-30 | 2 | -8/+11 | |
| | | |