loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Increase queue length (#27555)

authored by

Jason Song and committed by
GitHub
2c7b6c37 3c131307

+5 -5
+1 -1
custom/conf/app.example.ini
··· 1421 1421 ;DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`. 1422 1422 ;; 1423 1423 ;; Default queue length before a channel queue will block 1424 - ;LENGTH = 100 1424 + ;LENGTH = 100000 1425 1425 ;; 1426 1426 ;; Batch size to send for batched queues 1427 1427 ;BATCH_LENGTH = 20
+1 -1
docs/content/administration/config-cheat-sheet.en-us.md
··· 483 483 484 484 - `TYPE`: **level**: General queue type, currently support: `level` (uses a LevelDB internally), `channel`, `redis`, `dummy`. Invalid types are treated as `level`. 485 485 - `DATADIR`: **queues/common**: Base DataDir for storing level queues. `DATADIR` for individual queues can be set in `queue.name` sections. Relative paths will be made absolute against `%(APP_DATA_PATH)s`. 486 - - `LENGTH`: **100**: Maximal queue size before channel queues block 486 + - `LENGTH`: **100000**: Maximal queue size before channel queues block 487 487 - `BATCH_LENGTH`: **20**: Batch data before passing to the handler 488 488 - `CONN_STR`: **redis://127.0.0.1:6379/0**: Connection string for the redis queue type. For `redis-cluster` use `redis+cluster://127.0.0.1:6379/0`. Options can be set using query params. Similarly, LevelDB options can also be set using: **leveldb://relative/path?option=value** or **leveldb:///absolute/path?option=value**, and will override `DATADIR` 489 489 - `QUEUE_NAME`: **_queue**: The suffix for default redis and disk queue name. Individual queues will default to **`name`**`QUEUE_NAME` but can be overridden in the specific `queue.name` section.
+1 -1
docs/content/administration/config-cheat-sheet.zh-cn.md
··· 472 472 473 473 - `TYPE`:**level**:通用队列类型,当前支持:`level`(在内部使用 LevelDB)、`channel`、`redis`、`dummy`。无效的类型将视为 `level`。 474 474 - `DATADIR`:**queues/common**:用于存储 level 队列的基本 DataDir。单独的队列的 `DATADIR` 可以在 `queue.name` 部分进行设置。相对路径将根据 `%(APP_DATA_PATH)s` 变为绝对路径。 475 - - `LENGTH`:**100**:通道队列阻塞之前的最大队列大小 475 + - `LENGTH`:**100000**:通道队列阻塞之前的最大队列大小 476 476 - `BATCH_LENGTH`:**20**:在传递给处理程序之前批处理数据 477 477 - `CONN_STR`:**redis://127.0.0.1:6379/0**:redis 队列类型的连接字符串。对于 `redis-cluster`,使用 `redis+cluster://127.0.0.1:6379/0`。可以使用查询参数来设置选项。类似地,LevelDB 选项也可以使用:**leveldb://relative/path?option=value** 或 **leveldb:///absolute/path?option=value** 进行设置,并将覆盖 `DATADIR`。 478 478 - `QUEUE_NAME`:**_queue**:默认的 redis 和磁盘队列名称的后缀。单独的队列将默认为 **`name`**`QUEUE_NAME`,但可以在特定的 `queue.name` 部分中进行覆盖。
+1 -1
modules/queue/manager_test.go
··· 46 46 assert.Equal(t, "default", q.GetName()) 47 47 assert.Equal(t, "level", q.GetType()) 48 48 assert.Equal(t, filepath.Join(setting.AppDataPath, "queues/common"), q.baseConfig.DataFullDir) 49 - assert.Equal(t, 100, q.baseConfig.Length) 49 + assert.Equal(t, 100000, q.baseConfig.Length) 50 50 assert.Equal(t, 20, q.batchLength) 51 51 assert.Equal(t, "", q.baseConfig.ConnStr) 52 52 assert.Equal(t, "default_queue", q.baseConfig.QueueFullName)
+1 -1
modules/setting/queue.go
··· 30 30 queueSettingsDefault := QueueSettings{ 31 31 Type: "level", // dummy, channel, level, redis 32 32 Datadir: "queues/common", // relative to AppDataPath 33 - Length: 100, // queue length before a channel queue will block 33 + Length: 100000, // queue length before a channel queue will block 34 34 35 35 QueueName: "_queue", 36 36 SetName: "_unique",