Version: 1.1.11.1.21.1.31.3.3291.3.3401.3.3411.3.3431.3.3441.3.3451.3.3471.3.3481.3.3491.3.3501.3.3511.3.3521.3.3531.3.3541.3.3551.3.3561.3.3571.4.3571.4.3581.4.3591.4.3601.4.3611.4.3621.4.3631.4.3641.4.3651.4.3661.4.3671.4.3681.4.3691.4.3701.4.3711.4.3721.4.3731.4.3741.4.3751.4.3761.4.3771.4.3791.4.3801.4.3811.4.3821.4.3831.4.3841.4.3851.4.3861.4.3871.4.3881.4.3891.4.3901.4.3911.4.3921.4.3931.4.3941.5.3951.5.3961.5.3971.5.3981.5.3991.5.4001.5.4011.5.4021.5.4031.5.4041.5.4051.5.4061.5.4071.5.4081.5.4091.5.4101.5.4111.5.4121.5.4131.5.4141.5.4151.5.4161.5.4171.5.4181.5.4191.5.4211.5.4231.5.4241.5.4261.5.4291.6.4301.6.4321.6.4341.6.4351.6.4361.6.4371.6.4381.6.4391.6.4401.6.4411.6.4421.6.4431.6.4441.6.4451.6.4461.6.4471.6.4481.6.4491.6.4501.6.4511.6.4521.6.4531.6.4541.6.4551.6.4561.6.4571.6.4581.6.4591.6.4601.6.4611.6.4621.6.4631.6.4651.6.4661.6.4681.6.4691.6.4721.6.4731.6.4741.6.4752.6.4762.6.4772.7.4792.7.4832.7.4842.7.4852.7.4862.7.4872.7.4883.7.4883.7.4903.7.4923.7.4963.7.4973.7.5013.7.5033.7.5053.7.5063.7.5083.7.5113.7.5123.7.5133.7.5143.7.5153.7.5163.7.5173.7.5183.7.5193.7.5203.7.5213.7.5223.7.5233.7.5243.7.5253.7.5263.7.5273.7.5283.7.5293.7.5303.7.5323.7.5343.7.5353.7.5363.7.5373.7.5383.7.5393.7.5403.7.5413.7.5453.7.5463.7.5473.7.5493.7.5503.7.5513.7.5523.7.5533.7.5543.7.5553.7.5563.7.5573.7.5593.7.5603.7.5613.7.5633.7.5643.7.5653.7.5663.7.5673.7.5683.7.5693.7.5703.7.5723.7.5733.7.5743.7.5753.7.5763.7.5773.7.5783.7.5793.7.5803.7.5813.7.5823.7.5833.7.5843.7.5853.7.5863.7.5873.7.5883.7.5903.7.5913.7.5923.7.5933.7.5943.7.5953.7.5963.7.5973.7.5983.7.5993.7.6003.7.6013.7.6023.7.6053.7.6063.7.6073.7.6083.7.6093.7.6103.7.6113.7.6123.7.6133.7.6163.7.6175.8.5615.8.5625.8.5635.8.5645.8.5655.8.5675.8.5695.8.5705.8.5715.8.5725.8.5735.8.5745.8.5755.8.5765.8.5775.8.5795.8.5805.8.5827.0.1477.0.1497.0.1517.0.1537.0.1547.0.1557.0.1567.0.1577.0.1587.1.1597.1.1607.1.1617.1.1637.1.1647.1.1667.1.1677.1.1687.1.1697.1.1707.1.1717.1.1727.1.1737.1.1747.1.175-next.07.1.175-next.17.1.176-next.07.1.1767.1.1777.1.1787.1.1797.1.1827.1.1837.1.1847.1.1857.1.1867.1.1877.1.1887.1.1897.1.1907.1.1917.1.1927.1.1937.1.1947.1.1957.1.1967.1.1977.1.1987.1.1997.1.2017.1.2027.1.2037.1.2047.1.2057.2.2067.2.2077.2.2087.2.2099.0.1589.0.1599.0.1609.0.1619.0.163
// const cluster = require('cluster')
//
// if (cluster.isMaster) {
// const numCPUs = require('os').cpus().length
// global['a'] = 1
// console.log('numCPUs=>>>', numCPUs)
// for (let i = 0; i < numCPUs; i++) {
// // 创建子进程模拟线上请求的隔离方便global变量的使用保持与FC环境的一致性
// cluster.fork()
// }
// cluster.on('exit', function (worker, code, signal) {
// // console.log('Worker %d died with code/signal %s. Restarting worker...', worker.process.pid, signal || code);
// cluster.fork();
// })
// } else {
// if (!global['a']) {
// global['a'] = 0
// global['a'] += 1
// console.log('=>>>>', global['a'], new Date())
// const express = require('express')
// // Workers share the TCP connection in this server
// const app = express()
// app.get('/', function (req, res) {
// res.send('Hello World!' + new Date());
// process.exit()
// // All workers use this port
// app.listen(8080)