seaweedfs/weed/server
Chris Lu d4566d4aaa
more solid weed mount (#4089)
* compare chunks by timestamp

* fix slab clearing error

* fix test compilation

* move oldest chunk to sealed, instead of by fullness

* lock on fh.entryViewCache

* remove verbose logs

* revert slat clearing

* less logs

* less logs

* track write and read by timestamp

* remove useless logic

* add entry lock on file handle release

* use mem chunk only, swap file chunk has problems

* comment out code that maybe used later

* add debug mode to compare data read and write

* more efficient readResolvedChunks with linked list

* small optimization

* fix test compilation

* minor fix on writer

* add SeparateGarbageChunks

* group chunks into sections

* turn off debug mode

* fix tests

* fix tests

* tmp enable swap file chunk

* Revert "tmp enable swap file chunk"

This reverts commit 985137ec47.

* simple refactoring

* simple refactoring

* do not re-use swap file chunk. Sealed chunks should not be re-used.

* comment out debugging facilities

* either mem chunk or swap file chunk is fine now

* remove orderedMutex  as *semaphore.Weighted

not found impactful

* optimize size calculation for changing large files

* optimize performance to avoid going through the long list of chunks

* still problems with swap file chunk

* rename

* tiny optimization

* swap file chunk save only successfully read data

* fix

* enable both mem and swap file chunk

* resolve chunks with range

* rename

* fix chunk interval list

* also change file handle chunk group when adding chunks

* pick in-active chunk with time-decayed counter

* fix compilation

* avoid nil with empty fh.entry

* refactoring

* rename

* rename

* refactor visible intervals to *list.List

* refactor chunkViews to *list.List

* add IntervalList for generic interval list

* change visible interval to use IntervalList in generics

* cahnge chunkViews to *IntervalList[*ChunkView]

* use NewFileChunkSection to create

* rename variables

* refactor

* fix renaming leftover

* renaming

* renaming

* add insert interval

* interval list adds lock

* incrementally add chunks to readers

Fixes:
1. set start and stop offset for the value object
2. clone the value object
3. use pointer instead of copy-by-value when passing to interval.Value
4. use insert interval since adding chunk could be out of order

* fix tests compilation

* fix tests compilation
2023-01-02 23:20:45 -08:00
..
filer_ui [filer] Fix uri escape during renaming (#4039) 2022-12-07 07:47:40 -08:00
master_ui move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_server_ui move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
common.go volume server logs add url info 2022-12-11 13:15:38 -08:00
common_test.go jwt check the base file id 2019-03-03 10:17:44 -08:00
filer_grpc_server.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
filer_grpc_server_admin.go remove old raft servers if they don't answer to pings for too long (#3398) 2022-08-23 23:18:21 -07:00
filer_grpc_server_kv.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_grpc_server_remote.go add chunk etag when downloading from remote storage 2022-12-10 21:49:07 -08:00
filer_grpc_server_rename.go Fix hardlink counting (#4042) 2022-12-08 10:50:57 -08:00
filer_grpc_server_sub_meta.go grpc: watch metadata changes by directory 2022-09-20 09:25:18 -07:00
filer_server.go ensure memory is aligned 2022-08-10 22:27:13 -07:00
filer_server_handlers.go Allow CORS on Filer (#3750) 2022-09-27 11:47:52 -07:00
filer_server_handlers_proxy.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_server_handlers_read.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
filer_server_handlers_read_dir.go refactor FilerRequest metrics (#3402) 2022-08-04 01:44:54 -07:00
filer_server_handlers_tagging.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_server_handlers_write.go mute log filer: no entry is found in filer store (#3707) 2022-09-16 09:05:38 -07:00
filer_server_handlers_write_autochunk.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filer_server_handlers_write_cipher.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filer_server_handlers_write_merge.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_server_handlers_write_upload.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filer_server_rocksdb.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
master_grpc_server.go metric shows who is currently blocking the cluster or not (#3799) 2022-10-07 13:26:29 -07:00
master_grpc_server_admin.go metric shows who is currently blocking the cluster or not (#3799) 2022-10-07 13:26:29 -07:00
master_grpc_server_cluster.go refactor(master_grpc_server_cluster): seletedSet -> selectedSet (#3693) 2022-09-15 03:12:13 -07:00
master_grpc_server_collection.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
master_grpc_server_raft.go show raft leader via shell (#3796) 2022-10-06 07:10:41 -07:00
master_grpc_server_volume.go support enable/disable vacuum (#4087) 2022-12-28 01:36:44 -08:00
master_server.go master server graceful stop (#3797) 2022-10-06 09:30:30 -07:00
master_server_handlers.go filer prefer volume server in same data center (#3405) 2022-08-04 17:35:00 -07:00
master_server_handlers_admin.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
master_server_handlers_ui.go Add raft server access mutex to avoid races (#3503) 2022-08-24 09:49:05 -07:00
raft_hashicorp.go configure raft metrics (#3798) 2022-10-07 04:20:34 -07:00
raft_server.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
raft_server_handlers.go Add healthy indicator for raft status 2022-07-30 19:34:26 +02:00
volume_grpc_admin.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
volume_grpc_batch_delete.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_grpc_client_to_master.go adjust logs 2022-09-18 18:14:24 -07:00
volume_grpc_copy.go shell: volume.move handles volume moved to cloud tier 2022-10-16 17:52:22 -07:00
volume_grpc_copy_incremental.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_grpc_erasure_coding.go fix format 2022-08-22 00:20:21 -07:00
volume_grpc_query.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_grpc_read_all.go fix naming typo (#3465) 2022-08-18 23:25:32 -07:00
volume_grpc_read_write.go ADHOC: volume fsck using append at ns (#3906) 2022-10-24 22:09:38 -07:00
volume_grpc_remote.go add chunk etag when downloading from remote storage 2022-12-10 21:49:07 -08:00
volume_grpc_tail.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_grpc_tier_download.go avoid load volume file with BytesOffset mismatch (#3841) 2022-10-14 00:18:09 -07:00
volume_grpc_tier_upload.go avoid load volume file with BytesOffset mismatch (#3841) 2022-10-14 00:18:09 -07:00
volume_grpc_vacuum.go vacuum metrics and force sync dst files (#3832) 2022-10-13 00:51:20 -07:00
volume_server.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
volume_server_handlers.go fix: volume Deadlock when exception is thrown (#3613) 2022-09-06 23:56:29 -07:00
volume_server_handlers_admin.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_server_handlers_helper.go directory structure change to work with glide 2016-06-02 18:09:14 -07:00
volume_server_handlers_read.go volume server: rename readBufferSize to readBufferSizeMB 2022-09-17 10:56:28 -07:00
volume_server_handlers_ui.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_server_handlers_write.go add md5 header when UploadData to replication in ReplicatedWrite (#3881) 2022-10-19 01:34:14 -07:00
webdav_server.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00