Skip to content

Commit 4ea28d6

Browse files
committed
Further loadgen optimization
1 parent f05a72e commit 4ea28d6

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

workshop/petclinic/deployment.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,24 @@ data:
712712
function run () {
713713
return new Promise(async (resolve, reject) => {
714714
const browser = await puppeteer.launch({
715-
headless: 'shell',
715+
headless: true,
716716
defaultViewport: null,
717-
args: ['--no-sandbox', '--disable-setuid-sandbox']
717+
args: [
718+
'--no-sandbox',
719+
'--disable-setuid-sandbox',
720+
'--disable-gpu',
721+
'--disable-dev-shm-usage',
722+
'--disable-web-security',
723+
'--disable-features=VizDisplayCompositor',
724+
'--max-old-space-size=256',
725+
'--disable-extensions',
726+
'--disable-plugins',
727+
'--disable-background-networking',
728+
'--disable-background-timer-throttling',
729+
'--disable-backgrounding-occluded-windows',
730+
'--disable-renderer-backgrounding',
731+
'--memory-pressure-off'
732+
]
718733
});
719734
try {
720735
const wait_time = 500; //Set up delay between page interactions

0 commit comments

Comments
 (0)