A sentinel is a loop exit value or list delimiter whose value is outside the range of valid input, such as -1 for a zero-based array index, or ~ for alphabetic strings.
Questions tagged [sentinel]
410 questions
4
votes
1 answer
Redis Sentinel for Windows
I'm successfully using Redis for Windows (2.6.8-pre2) in a master slave setup. However, I need to provide some automated failover capability, and it appears the sentinel is the most popular choice. When I run redis in sentinel mode the sentinel…

CuriousLayman
- 207
- 1
- 10
3
votes
2 answers
sentinel error occurred while executing oct2py in python for running octave script
I am trying to use oct2py to run octave script(.m file) in python.
here is the code
import os
os.environ['OCTAVE_EXECUTABLE'] = ('C:\\Program Files\\GNU Octave\\Octave-6.2.0\\mingw64\\bin\\octave-cli.exe')
import oct2py
out =…

Karan Sohal
- 31
- 1
3
votes
0 answers
Graph API Security Alerts properties blank or GUID
When calling https://graph.microsoft.com/v1.0/security/alerts via python the properties returned do not reflect what is in the documentation. I.e : Category (per docs) = category String Category of the alert (for example, credentialTheft,…

J.M
- 31
- 2
3
votes
4 answers
C/GL: Using -1 as sentinel on array of unsigned integers
I am passing an array of vertex indices in some GL code... each element is a GLushort
I want to terminate with a sentinel so as to avoid having to laboriously pass the array length each time alongside the array itself.
#define SENTINEL ( (GLushort)…

P i
- 29,020
- 36
- 159
- 267
3
votes
0 answers
failover-abort-no-good-slave master mymaster
I'm trying to set up a highly available and fault tolerance Redis,
but in this scenario, all sentinel stuck and can't select a new master
I set down-after-milliseconds 1000 and failover-timeout 2000
when all sentinel goes down and then my master…

NIKAN ghorbani
- 41
- 5
3
votes
0 answers
Why does adding a view::filter trigger multiple redundant sentinel checks?
Given str is a string
auto str = std::string{};
getline(std::cin, str);
I notice when we have a view::filter exist on a lazy range, there will be many redundant sentinel checks even with -O3. CE godbolt.org/g/B3ZGbm
for (auto sv : str |…

sandthorn
- 2,770
- 1
- 15
- 59
3
votes
1 answer
Redis Sentinel Authentication
I have 3 Servers with Redis and Sentinel Running.
All instances have in the configuration
requirepass XXX
masterauth XXX
I can connect with redis-cli to the redis server but if I try to connect to the sentinel I can not…

ghovat
- 1,033
- 1
- 12
- 38
3
votes
1 answer
Laravel / Sentinel - How to get value through pivot table
I use Sentinel Framework to made authorization and authentication. But I stuck in User Management.
I want to show details like Email - Role but I still stuck here.
My Database:
role: ID, slug, name
user: ID, Email, ...
role_users: user_id,…

Nguyen Hoang
- 540
- 5
- 25
3
votes
2 answers
Merge sort implementation questions in Java
I'm in an algorithms course and am learning about merge sort. Our professor recommended we try to implement the pseudo code provided in the book.
Am I correct in using Integer.MAX_VALUE as a sentinel value when
sorting an array of integers (used…

Nishant
- 131
- 2
- 12
3
votes
6 answers
Algorithm to check a linked-list for loops
I want to find an algorithm which checks a linked-list with n elements for consistency. The linked-list uses a dummy head (also known as sentinel-node). The algorithm needs to run in O(n) time and is allowed to use O(1) extra space apart from the…

Elfie
- 374
- 3
- 15
3
votes
2 answers
Getting Redis Master address from Sentinel C#
I am trying to use the sentinel to get the connection address of my master, the problem is that the sentinel sends the address only on failover, but if my master is down and the slave was promoted master and my application is just booted it would…

atikot
- 4,761
- 4
- 26
- 34
3
votes
2 answers
How does Redis Cache work with High Availability and Sentinel?
I am trying to setup a high-availability setup where if a server goes down that is hosting my main Redis cache, that it will choose a different master, but I am a little confused after reading through all the documentation about Sentinels.
For…

Ben Humphrey
- 588
- 5
- 17
3
votes
1 answer
How to provide Sentinel value at the end of Structure Array
I've created a structure of 10 elements (11th for sentinel value) and a structure pointer, assigning address of first structure element to it.
struct student
{
int roll_no;
};
struct student s[11];
struct student *ptr = &s[0];
s[10] =…

Shashi
- 746
- 10
- 39
3
votes
1 answer
Is it possible to add different types to a single arraylist in Java?
I need to create an ArrayList (well it doesn't have to be an ArrayList but that's what I'm attempting so far) to hold student ids, marks, and course names.
I have something like this so far:
import java.util.*;
public class MarksHandling {
static…

Michael MacDonald
- 413
- 2
- 6
- 17
3
votes
2 answers
Sentinel values for the first iteration of a loop?
Imagine the following pseudocode
objects[i], 1 <= i <= n
objects[0] = 0
for i from 1 to n
if(objects[i] - objects[i-1] > constant)
do something
I'd like to know if there's a specific name for the assignment objects[0] = 0.
I know that when…

dcastro
- 66,540
- 21
- 145
- 155