发布日期: 2022-03-13
版本号: v0.3.4

本次更新新增多项功能与修复:支持设置推荐检查周期、推荐项替换、MongoDB的DNS SRV记录查询及集群时钟误差设置;修复了隐藏项导入导出问题、优化隐藏项展示逻辑、修正float32时间戳精度及潜在Redis内存泄漏。升级需注意配置文件中新增check_recommend_period、enable_replacement等推荐系统参数,集群需配置epsilon_time参数,同时需执行Redis命令清除旧版离线推荐缓存。

更新内容 (中文)

新特性

  • 支持设置检查推荐周期 (#384)
  • 支持推荐结果中的替换机制 (#385)
  • 支持 MongoDB 的 DNS SRV 记录解析 (#386,由 @pranav377 授权)
  • 支持设置集群时钟误差 (#397)

修复

  • 导入/导出含隐藏标记和分类的条目 (#383)
  • 在最新条目、热门条目和邻近条目中隐藏已隐藏项 (#393)
  • 修复 float32 时间戳表示精度问题 (#394)
  • 修复 Redis 潜在内存泄漏问题 (#395)

升级指南

  • 配置项: 新增配置参数支持替换机制,以及 check_recommend_periodepsilon_time
[server]
# ...
epsilon_time = 5                # 集群时钟误差(单位:秒)

[recommend]
# ...
# 为用户检查推荐的时间周期(分钟),默认值为1
check_recommend_period = 1

# 启用将历史条目替换回推荐列表
enable_replacement = false

# 正反馈替换条目的权重衰减系数
positive_replacement_decay = 0.8

# 阅读反馈替换条目的权重衰减系数
read_replacement_decay = 0.6
  • Redis: 清理不兼容的陈旧缓存
redis-cli KEYS \"offline_recommend*\" | xargs redis-cli DEL

更新内容 (原始)

Features

  • Support set check recommend period (#384).
  • Support replacement in the recommendation (#385).
  • Support DNS SRV record lookup for MongoDB (#386, authorized by @pranav377).
  • Support set clock error in the cluster (#397).

Fix

  • Import and export items with hidden flags and categories (#383).
  • Hide hidden items in the latest items, popular items, and item neighbors (#393).
  • Fix inaccurate representation of timestamps in float32 (#394).
  • Fix potential Redis memory leak (#395).

Upgrade Guide

  • Configuration: Replacement has been supported in the configuration, as well as check_recommend_period and epsilon_time.
[server]
# ...
epsilon_time = 5                # clock error in the cluster in seconds

[recommend]
# ...
# The time period to check recommendation for users (minutes). The default values is 1.
check_recommend_period = 1

# Replace historical items back to recommendations.
enable_replacement = false

# Decay the weights of replaced items from positive feedbacks.
positive_replacement_decay = 0.8

# Decay the weights of replaced items from read feedbacks.
read_replacement_decay = 0.6
  • Redis: Remove incompatible stale cache.
redis-cli KEYS "offline_recommend*" | xargs redis-cli DEL

下载链接