Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # require 'manageiq_performance' | |
| def generate_batches_od_data(ems_name:, total_elements:, batch_size: 1000) | |
| ems = ExtManagementSystem.find_by(:name => ems_name) | |
| persister = ManageIQ::Providers::Amazon::Inventory::Persister::TargetCollection.new( | |
| ems, ems | |
| ) | |
| count = 1 | |
| persister, count = process_entity(ems, :vm, persister, count, total_elements, batch_size) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| count: '2' | |
| image_uuid: ami-a4dc46db | |
| instance_indexed_tags: |- | |
| Name: ladas_ansible_test_2 | |
| TestTag: test2 | |
| TestTag2: test2 | |
| instance_name: ladas_ansible_test_2 | |
| instance_tags: |- | |
| Name: ladas_ansible_test_2 | |
| TestTag: test2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script for creating/updating ManageIQ plugins | |
| # Ruby script in directory /path-to-manageiq/plugins | |
| # @param --clone for cloning and set upstream | |
| cd /home/mslemr/Projects/ManageIQ/upstream | |
| git fetch --all | |
| git checkout master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT "vms".* FROM "vms" | |
| INNER JOIN "taggings" ON "taggings"."taggable_id" = "vms"."id" AND "taggings"."taggable_type" = $1 | |
| INNER JOIN "tags" ON "tags"."id" = "taggings"."tag_id" | |
| WHERE "vms"."type" IN ('ManageIQ::Providers::CloudManager::Vm', | |
| 'ManageIQ::Providers::Google::CloudManager::Vm', | |
| 'ManageIQ::Providers::Amazon::CloudManager::Vm', | |
| 'ManageIQ::Providers::Azure::CloudManager::Vm', | |
| 'ManageIQ::Providers::Openstack::CloudManager::Vm', | |
| 'ManageIQ::Providers::Vmware::CloudManager::Vm') | |
| AND "vms"."template" = $2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| equire 'manageiq_performance' | |
| manager_name = ARGV[0] || "azure bigger" | |
| ems = ExtManagementSystem.find_by(:name => manager_name) | |
| unless ems | |
| password = 'pswd'.freeze | |
| userid = "user" | |
| ems = ManageIQ::Providers::Azure::CloudManager.create( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ActiveRecord::Base.logger = Logger.new(STDOUT) | |
| NUMBER_OF_CONTAINERS = 20_000 # 100_000 | |
| NUMBER_OF_PROJECTS = 100 | |
| LABELS_PER_CONTAINER_IMAGE = 20 | |
| METRIC_PERIOD = 20.seconds | |
| METRICS_START = 4.hours.ago.utc | |
| METRICS_END = Time.now.utc | |
| # Have also archived containers? |
NewerOlder