二进制数据#
¥Binary data
二进制数据是指任何文件类型的数据,例如在工作流执行期间生成或处理的图片文件或文档。
¥Binary data is any file-type data, such as image files or documents generated or processed during the execution of a workflow.
启用文件系统模式#
¥Enable filesystem mode
处理二进制数据时,n8n 默认将数据保存在内存中。处理大型文件时,这可能会导致崩溃。
¥When handling binary data, n8n keeps the data in memory by default. This can cause crashes when working with large files.
为避免此错误,请将 N8N_DEFAULT_BINARY_DATA_MODE 和 环境变量 更改为 filesystem。这会导致 n8n 将数据保存到磁盘,而不是使用内存。
¥To avoid this, change the N8N_DEFAULT_BINARY_DATA_MODE environment variable to filesystem. This causes n8n to save data to disk, instead of using memory.
如果你使用的是队列模式,请将其切换为 database。n8n 不支持 filesystem 模式的队列模式。
¥If you're using queue mode, switch this to database. n8n doesn't support filesystem mode with queue mode.
二进制数据修剪#
¥Binary data pruning
n8n 将二进制数据修剪作为执行数据修剪的一部分。有关详细信息,请联系 执行数据 |启用执行修剪。
¥n8n executes binary data pruning as part of execution data pruning. Refer to Execution data | Enable executions pruning for details.
如果你配置了多个二进制数据模式,二进制数据修剪将作用于当前激活的二进制数据模式。例如,如果你的实例将数据存储在 S3 中,并且你后来切换到文件系统模式,则 n8n 只会清理文件系统中的二进制数据。有关详细信息,请联系 外部存储。
¥If you configure multiple binary data modes, binary data pruning operates on the active binary data mode. For example, if your instance stored data in S3, and you later switched to filesystem mode, n8n only prunes binary data in the filesystem. Refer to External storage for details.