Commit Graph

3328 Commits

Author SHA1 Message Date
Abhishek Kumar fd424d55f4 move adding indexes to java class
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-23 11:07:02 +05:30
Abhishek Kumar 5c379fd7fc refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-21 17:37:00 +05:30
Abhishek Kumar eaf17ddbb9 renamed storage.pool.host.connect.workers
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-21 17:04:03 +05:30
Abhishek Kumar f6c16d9cfc refactor capacity calculation
Added capacity.calculate.workers config to control the number threads
that can be used to calculate capacities.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-21 17:00:56 +05:30
Abhishek Kumar aae3a0a0b8 refactor to retrieve host count and cpu sockets in single query
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-20 19:58:43 +05:30
Abhishek Kumar c885464c71 storage pool host connection improvements
- Enabels using worker threads for parallel connection of hosts to a
  storage pool
- HostDaoImpl refactorings

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-20 19:11:02 +05:30
Abhishek Kumar 4b2c5734db fix npe
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-17 14:01:41 +05:30
Abhishek Kumar 99e630370c revert min threads for AgentTaskPool
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-12 19:28:15 +05:30
Abhishek Kumar 8038b28b1c server: indirectagentlb hypervisor type fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-11 17:56:18 +05:30
Abhishek Kumar 38765f327c fix Transaction error
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-11 16:51:33 +05:30
Abhishek Kumar 3ff2d81976 fix Transaction.finalize error for updatePowerState
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-11 16:02:56 +05:30
Abhishek Kumar d85dd6d782 make default for powersync for transitioning vms as true
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-11 16:02:05 +05:30
Abhishek Kumar 47333a7077 Merge remote-tracking branch 'apple/apple-base418' into scalability-improvements 2024-10-11 13:37:12 +05:30
Abhishek Kumar d0fc91ab2a build fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-09 17:29:18 +05:30
Wei Zhou 85076cb0f8
Resize volume: add pool capacity disablethreshold for resize and allow volume auto migration (#492)
* server: add global settings for volume resize

* resizeVolume: support automigrate

* server: fix build errors as it is backported from 4.20/main

* Address Suresh's comments

* Update api/src/main/java/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java

Co-authored-by: Suresh Kumar Anaparti <suresh.anaparti@shapeblue.com>

* Apple issue-299: address Suresh's comments

* Update api/src/main/java/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java

* UI: add autoMigrate to resizeVolume

---------

Co-authored-by: Suresh Kumar Anaparti <suresh.anaparti@shapeblue.com>
2024-10-09 16:36:33 +05:30
Abhishek Kumar 5f86dad4cb improve cluster overcommit value cache
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-09 16:28:24 +05:30
Abhishek Kumar 1589cde4e4 check for empty ids
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-09 16:27:39 +05:30
Abhishek Kumar a3ea8603a9 during resource calculation directly return ids for service offering,
templates

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 14:28:26 +05:30
Abhishek Kumar a069e14cf9 directly return count for systemvms used in listInfra
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 14:25:25 +05:30
Abhishek Kumar c6cc136ce6 changes in pools for agent executors
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-08 14:24:09 +05:30
Abhishek Kumar c859f8ba80 changes in vm powerstate sync
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 16:25:14 +05:30
Abhishek Kumar a9661f4587 changes in statscollection
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 16:23:15 +05:30
Abhishek Kumar a5d02665b4 changes for host reqrieval from db
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-10-07 16:21:06 +05:30
Abhishek Kumar adae7c88b8 changes
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-27 13:00:38 +05:30
Abhishek Kumar fa50740514 wip
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-26 12:10:38 +05:30
Abhishek Kumar 1652086ff9 wip changes for agent reconnection
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-25 18:33:55 +05:30
Abhishek Kumar 0151f125aa improvement
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-23 20:04:34 +05:30
Abhishek Kumar 0ca8722c38 Merge remote-tracking branch 'apple/scalability-improvements' into scalability-improvements-fixes 2024-09-23 14:47:25 +05:30
Abhishek Kumar 1d0b90f984 Merge remote-tracking branch 'apple/apple-base418' into scalability-improvements 2024-09-23 14:45:21 +05:30
Abhishek Kumar 35ed30bd51 continuation of 1d47e4d4ae
list host IDs instead of complete row where possible

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-16 18:03:06 +05:30
Abhishek Kumar 33321f00ce template list fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-16 14:28:51 +05:30
Abhishek Kumar 97ddd17f94 fix related to 38d6c4e7e7
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 17:40:20 +05:30
Abhishek Kumar 1d47e4d4ae engine-schema,server,plugins: list host IDs instead whole row where
applicable

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 16:19:43 +05:30
Abhishek Kumar fe4ef05053 server,engine-schema: use single query to to list host capacities while
host capacity update

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 16:17:47 +05:30
Abhishek Kumar 98b27a409d engine-schema: fix get host type count searchcriteria
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 15:06:33 +05:30
Abhishek Kumar 38d6c4e7e7 optimize finding ready systemvm template for zone
Retrieving templates with inner join on host table was turning out to be
more expensive than finding distinct hypervisor types for a zone using
hsot table and then finding templates for those types

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-13 12:10:47 +05:30
Abhishek Kumar a1ee64344d address host/cluster dao listall
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 17:23:44 +05:30
Abhishek Kumar 9e5c99ef9e fix tests from a78a2508e9
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 16:58:18 +05:30
Abhishek Kumar a78a2508e9 server: refactor MS list retrieval for agent connect
During agent join and while changing configs - host and indirect.agent.lb.algorithm, optimize calling DB for zone's host list

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 16:00:17 +05:30
Abhishek Kumar 68bab20d24 VMInstanceDao.updatePowerState refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-12 15:47:00 +05:30
Abhishek Kumar d5a774c736 import fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-11 11:44:48 +05:30
Abhishek Kumar de60fb64e8 fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-10 15:35:14 +05:30
Abhishek Kumar 9074c4b6ad address process vm power state report for transitioning VMs
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-10 15:22:16 +05:30
Abhishek Kumar 3e098b87a9 fix
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-10 15:22:02 +05:30
Abhishek Kumar df137fc387 refactor
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-10 10:22:59 +05:30
Abhishek Kumar 61764aba1f cache and executors refactoring
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-09 19:39:50 +05:30
Abhishek Kumar 8f6c657159 optimize scanStalledVms procedure
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-06 14:27:56 +05:30
mprokopchuk cf8dd76d4c renamed created_exists to created_column_not_exists in sql migration script 2024-09-06 01:25:04 -07:00
Abhishek Kumar 8ee5e6a99a refactor transitioning vm process report
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-04 18:35:23 +05:30
Abhishek Kumar 1be848da25 server: PingRoutingCommand - enable scanStalledVm
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2024-09-03 16:03:11 +05:30