## Different Maximum server memory across Availability Replicas

I have a scenario in SQL Server 2014 AlwaysOn High Availability where other services are running in one of the Secondary read-only replicas.

These services obviously demand additional memory. Is there any good practice or specific reason why SQL Server should have the same memory configuration across different replicas?

## Can the hit point maximum be reduced repeatedly with multiple Harm spells?

I know that the effects of a spell don’t combine if it is cast multiple times. Only the most potent effect would be applied. In our last game, this topic came up in regards to the Harm spell. Harm was cast on an opponent. He failed the save, took a lot of damage and his hit point maximum was reduced drastically. A turn later, he got slammed again with Harm. This time, he succeeded on the save and very little necrotic damage was dealt. Then, the discussion started whether his hit point maximum would now be further reduced or if the “more potent” Harm spell takes precedence.

Naturally, I argued that his hit point maximum would not be reduced further, because effects of the same spell cast multiple times don’t stack. The counterargument was, that the necrotic damage dealt by the Harm spell is clearly an effect of the spell. And no one would argue, that the damage dealt by two consecutive Harm spells would only be applied once. So now I ask you:

Can the hit point maximum be reduced repeatedly with multiple Harm spells?

## Does a troll die if its maximum hit points is zero?

The Troll has the Regeneration feature which states:

The troll regains 10 hit points at the start of its turn. If the troll takes acid or fire damage, this trait doesn’t function at the start of the troll’s next turn. The troll dies only if it starts its turn with 0 hit points and doesn’t regenerate.

I’m wondering what happens when even a trolls maximum hit points has been reduced to zero. I don’t know if this method works to kill a troll because I’m unsure whether they have actually regenerated or not. Does the troll die?

## What does “Summoned creature has maximum hit points” actually mean?

So, I’m running Princes of the Apocalypse for my group, they’re about to encounter their first elemental prince, Yan-C-Bin, and I see that he has the following ability:

The part I’m confused about is “maximum hit points.” Air elementals have their hit points listed as “90 (12d10+24)” in their stat block. Is this line meant to make sure people are deploying a fully-healed air elemental as opposed to one with 30 HP (regardless of whether they use the average hit points or they actually roll their hit dice), or is it meant to convey that these are extremely robust air elementals and each should have the maximum possible hit points as decided by the hit dice, 144 (120+24), and the fully-healed part is implied?

## Modifies Dijkstra’s Algorithm to find the maximum cost path

In a DAG and all weights are larger than 0. Is it possible to use a max heap to get the maximum cost?

## Maximum number of libraries in one web

I’ve been having a look at this link as I’m looking at the options for a document repository with high volume and a rather complex security matrix.

I can see most of the limits I need to start playing with the IA options and pivoting the metadata around but I can’t see how many libraries I can have in one site.

The boundaries mention how to get up to 250.000 sites. that’s actually more than what I need, but site level might be an option for us. I was wondering if I could take it one level down. I was thinking of something like 20.000 libraries in a site.

Has anyone done anything like this? Any tips?

## Partially inspired by (but distinct from) this question.

I have a character concept for a character that make several attacks every turn like whirlwind of blades so I was wondering what the maximum number of melee weapon attacks a single character could make in one turn every turn. (So no consumable resources like spell slots or action surge.)

## Stipulations:

• Must be reliable and repeatable ad infinitum. (over and over again without end)
• Must not rely on any consumable resources such as spell slots or action surge unless you have a way to not run out of the resource.
• Hit or miss doesn’t matter. If your strategy relies on hitting provide counts for both with and without hitting.
• Must be able to be accomplished by a single character with no help from another.
• Must not require any magic items.
• You can use any weapon provided it’s not a magic item and is a melee weapon (and is being used as one).
• You make take any needed feats provided they come from a racial ability (like variant human) or are taken in place of an ASI
• Assume there is only a single target.

The most I have come up with is dual wielding light one handed weapons as a level 20 fighter. This grants 4 attacks in a normal action plus one bonus action attack.

## Maximum number of steps using Euclid’s Algorithm

Using Euclids algorithm, is it true that the maximum number of steps of $$GCD(a, b)$$ is at most $$b$$ when $$a\geq b> 0$$? And if so why?

## actual application of maximum flow problem

As I am studying the maximum/minimum flow question, I am facing a a problem given as follow; say a traveling agency has n destinations on there service map, and it intends to maintain them with minimum amount of vehicles. Say a transit i starts at $${s_{i}}$$ and ends at $$e_i$$ , and then for that transit, it needs another $$ret_{ij}$$ to return back to j from desitnation I. How can this transit schedule problem solved by using minimum flow problem techniques?

Many thanks

## maximum number of multiples of A[i] in the array where the indexes of the multiples should be less than i(i.e j

given an array of size n…we have to find the maximum number of multiples of A[i] in the array where the indexes of the multiples should be less than i(i.e j

My approach:-i used bruteforce to solve this…i used nested loops to solve this…the first loop from the last element and the second loop from the first element to the second last element

I am unable to optimise it…need some help