| Package | Description |
|---|---|
| org.apache.pulsar.broker.admin.impl |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.admin.v1 |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.admin.v2 |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.loadbalance |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.loadbalance.impl |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<Long,Collection<ResourceUnit>> |
BrokerStatsBase.internalBrokerResourceAvailability(org.apache.pulsar.common.naming.NamespaceName namespace) |
| Modifier and Type | Method and Description |
|---|---|
Map<Long,Collection<ResourceUnit>> |
BrokerStats.getBrokerResourceAvailability(String property,
String cluster,
String namespace) |
| Modifier and Type | Method and Description |
|---|---|
Map<Long,Collection<ResourceUnit>> |
BrokerStats.getBrokerResourceAvailability(String tenant,
String namespace) |
| Modifier and Type | Method and Description |
|---|---|
ResourceUnit |
PlacementStrategy.findBrokerForPlacement(com.google.common.collect.Multimap<Long,ResourceUnit> finalCandidates) |
ResourceUnit |
LoadReport.getResourceUnit() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ResourceUnit> |
LoadManager.getLeastLoaded(org.apache.pulsar.common.naming.ServiceUnitId su)
Returns the Least Loaded Resource Unit decided by some algorithm or criteria which is implementation specific
|
Optional<ResourceUnit> |
NoopLoadManager.getLeastLoaded(org.apache.pulsar.common.naming.ServiceUnitId su) |
| Modifier and Type | Method and Description |
|---|---|
ResourceUnit |
PlacementStrategy.findBrokerForPlacement(com.google.common.collect.Multimap<Long,ResourceUnit> finalCandidates) |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleResourceUnit |
| Modifier and Type | Method and Description |
|---|---|
ResourceUnit |
WRRPlacementStrategy.findBrokerForPlacement(com.google.common.collect.Multimap<Long,ResourceUnit> finalCandidates)
Function : getByWeightedRoundRobin
returns ResourceUnit selected by WRR algorithm based on available resource on RU
^
|
|
|
| | | | |
| | | | |
| Broker 2 | Broker 3 | Broker 1 | B4 |
| | | | |
+----------------+------------------------+--------------------------------+--------->
0 20 50 90 100
This is weighted Round robin, we calculate weight based on availability of resources;
total availability is taken as a full range then each broker is given range based on
its resource availability, if the number generated within total range happens to be in
broker's range, that broker is selected
|
ResourceUnit |
PulsarLoadReportImpl.getResourceUnit() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ResourceUnit> |
SimpleLoadManagerImpl.getLeastLoaded(org.apache.pulsar.common.naming.ServiceUnitId serviceUnit) |
Optional<ResourceUnit> |
ModularLoadManagerWrapper.getLeastLoaded(org.apache.pulsar.common.naming.ServiceUnitId serviceUnit) |
com.google.common.collect.Multimap<Long,ResourceUnit> |
SimpleLoadManagerImpl.getResourceAvailabilityFor(org.apache.pulsar.common.naming.ServiceUnitId serviceUnitId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SimpleResourceAllocationPolicies.canAssign(ServiceUnit srvUnit,
ResourceUnit rescrUnit,
Map<ResourceUnit,LoadReport> loadReports) |
int |
SimpleResourceUnit.compareTo(ResourceUnit o) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SimpleResourceAllocationPolicies.canAssign(ServiceUnit srvUnit,
ResourceUnit rescrUnit,
Map<ResourceUnit,LoadReport> loadReports) |
ResourceUnit |
WRRPlacementStrategy.findBrokerForPlacement(com.google.common.collect.Multimap<Long,ResourceUnit> finalCandidates)
Function : getByWeightedRoundRobin
returns ResourceUnit selected by WRR algorithm based on available resource on RU
^
|
|
|
| | | | |
| | | | |
| Broker 2 | Broker 3 | Broker 1 | B4 |
| | | | |
+----------------+------------------------+--------------------------------+--------->
0 20 50 90 100
This is weighted Round robin, we calculate weight based on availability of resources;
total availability is taken as a full range then each broker is given range based on
its resource availability, if the number generated within total range happens to be in
broker's range, that broker is selected
|
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.