Issue Description
Now sentinel will create a new list for every resource because some of the slots are bound to specific resource.
Describe what happened (or what feature you want)
Many slots will be created in memory.
Describe what you expected to happen
They should be reusable.
Anything else we need to know?
Related slots are ClusterBuilderSlot
and NodeSelectorSlot
.
4条答案
按热度按时间vyswwuz21#
I think we can split it to some step:
First , we can cache stateless slot instance to reuse when build slotchain. This can reduce repeated creation of slot.
Then we can make other slots statless in future.
chy5wohz2#
I think we can split it to some step:
First , we can cache stateless slot instance to reuse when build slotchain. It can reduce repeated creation of slot.
Then we can make other slots statless in future.
hfwmuf9z3#
it is tough since almost all the slots had a state. They have to maintain their
next
onen8ghc7c14#
if
AuthoritySlot
andStatisticSlot
andSystemSlot
are the fixed-last three, they could be defined as singleton. i checkedDefaultSlotChainBuilder
found they could be custom ordered now 😬