mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Fleet] Change default batch size (#161249)
This commit is contained in:
parent
901b9eb127
commit
8ef1287017
2 changed files with 13 additions and 1 deletions
|
@ -410,6 +410,7 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
|
|||
};
|
||||
|
||||
const isCurrentRequestIncremented = currentRequestRef?.current === 1;
|
||||
|
||||
return (
|
||||
<>
|
||||
{isAgentActivityFlyoutOpen ? (
|
||||
|
@ -519,6 +520,17 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
|
|||
<EuiSpacer size="l" />
|
||||
</>
|
||||
)}
|
||||
{/* TODO serverless agent soft limit */}
|
||||
{showUnhealthyCallout && (
|
||||
<>
|
||||
{cloud?.deploymentUrl ? (
|
||||
<FleetServerCloudUnhealthyCallout deploymentUrl={cloud.deploymentUrl} />
|
||||
) : (
|
||||
<FleetServerOnPremUnhealthyCallout onClickAddFleetServer={onClickAddFleetServer} />
|
||||
)}
|
||||
<EuiSpacer size="l" />
|
||||
</>
|
||||
)}
|
||||
{/* Search and filter bar */}
|
||||
<SearchAndFilterBar
|
||||
agentPolicies={agentPolicies}
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
import { agentPolicyService } from '../agent_policy';
|
||||
import { appContextService } from '../app_context';
|
||||
|
||||
const DEFAULT_BATCH_SIZE = 100;
|
||||
const DEFAULT_BATCH_SIZE = 2;
|
||||
function getOutdatedAgentPoliciesBatch(soClient: SavedObjectsClientContract, batchSize: number) {
|
||||
return agentPolicyService.list(soClient, {
|
||||
perPage: batchSize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue