[Fleet] Change default batch size (#161249)

This commit is contained in:
Nicolas Chaulet 2023-07-05 09:49:38 -04:00 committed by GitHub
parent 901b9eb127
commit 8ef1287017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -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}

View file

@ -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,