Skip to content

Commit

Permalink
[Fleet] Change default batch size (elastic#161249)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet authored Jul 5, 2023
1 parent 901b9eb commit 8ef1287
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ export const AgentListPage: React.FunctionComponent<{}> = () => {
};

const isCurrentRequestIncremented = currentRequestRef?.current === 1;

return (
<>
{isAgentActivityFlyoutOpen ? (
Expand Down Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8ef1287

Please sign in to comment.