Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
scaling_scheduler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abdulhadi Al-Sayed
scaling_scheduler
Commits
ea67bcbe
Commit
ea67bcbe
authored
3 years ago
by
Abdulhadi Al-Sayed
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix
parent
2f728a8e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
infcode-golang
+1
-1
1 addition, 1 deletion
infcode-golang
setup.sh
+3
-2
3 additions, 2 deletions
setup.sh
with
4 additions
and
3 deletions
infcode-golang
@
f615eaf4
Compare
fa7f1a7a
...
f615eaf4
Subproject commit f
a7f1a7a4d99081feb9b7f641421218b02ed140b
Subproject commit f
615eaf48238de159ec104ff04e2b6a4fbe88070
This diff is collapsed.
Click to expand it.
setup.sh
+
3
−
2
View file @
ea67bcbe
...
...
@@ -11,16 +11,17 @@ while [ $secs -gt 0 ]; do
done
# Get both downscale and upscale webhooks from stack output and feed to service project directory
openstack stack output show
--all
scaling_scheduler |
grep
-Eo
"(https)://[a-zA-Z0-9./?&=_%:-]*"
>
infcode-golang/
main/
scheduleroutputdata.txt
openstack stack output show
--all
scaling_scheduler |
grep
-Eo
"(https)://[a-zA-Z0-9./?&=_%:-]*"
>
infcode-golang/scheduleroutputdata.txt
# Install golang if not installed
sudo
apt-get update
sudo
apt-get
-y
install
golang-go
# Build scheduler service
go build /home/ubuntu/scaling_scheduler/infcode-golang/main/main.go
go build /home/ubuntu/scaling_scheduler/infcode-golang/main/main.go
-o
/home/ubuntu/scaling_scheduler/infcode-golang/main/main
# Create symlink for systemctl to run go service
sudo
systemctl disable scheduler
sudo
systemctl
link
/home/ubuntu/scaling_scheduler/infcode-golang/main/scheduler.service
# Activate service with systemd
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment