95220e2ed6
The startup configuration only reads JELLYFIN_ prefixed environment variables, so the bare Jellyfin__TranscodeStore__* form used by the chart, the manifests and the README is dropped and the Redis store is never registered. Nothing logs the selected store, so the fallback is invisible. - Read bare Jellyfin__* variables into the Jellyfin:* configuration root - Keep an explicit JELLYFIN_ variable winning over the bare form - Log the selected transcode session store at startup - Ping Redis once at startup and log an unreachable store at Error - Log endpoints only, never the connection string
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
namespace MediaBrowser.Controller.MediaEncoding;
|
|
|
|
/// <summary>
|
|
/// Configuration options for the transcode session store.
|
|
/// </summary>
|
|
public sealed class TranscodeStoreOptions
|
|
{
|
|
/// <summary>
|
|
/// The configuration section these options bind from.
|
|
/// </summary>
|
|
public const string ConfigurationSection = "Jellyfin:TranscodeStore";
|
|
|
|
/// <summary>
|
|
/// The configuration key holding the Redis connection string.
|
|
/// </summary>
|
|
public const string RedisConnectionStringKey = ConfigurationSection + ":RedisConnectionString";
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Redis connection string.
|
|
/// A <c>null</c> or empty value indicates single-instance mode, where
|
|
/// <see cref="NullTranscodeSessionStore"/> is used instead of a Redis-backed store.
|
|
/// </summary>
|
|
public string? RedisConnectionString { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the duration in seconds for which a transcoding session lease is valid.
|
|
/// </summary>
|
|
public int LeaseDurationSeconds { get; set; } = 30;
|
|
|
|
/// <summary>
|
|
/// Gets or sets how long in seconds a session record is retained after its lease was last renewed.
|
|
/// The record must outlive the lease, otherwise an orphaned session is gone before another pod
|
|
/// can take it over.
|
|
/// </summary>
|
|
public int SessionRetentionSeconds { get; set; } = 300;
|
|
}
|