Questions tagged [octopus]

Octopus is a framework for database sharding with Ruby on Rails' ActiveRecord.

From the README:

Octopus is a better way to do Database Sharding in ActiveRecord. Sharding allows multiple databases in the same rails application. While there are several projects that implement Sharding (e.g. DbCharmer, DataFabric, MultiDb), each project has its own limitations. The main goal of octopus project is to provide a better way of doing Database Sharding.

Octopus supports:

  • Sharding (with multiple shards, and grouped shards).
  • Replication (Master/slave support, with multiple slaves).
  • Moving data between shards with migrations.

Source code for Octopus is on github.

143 questions
2
votes
3 answers

Include web.release.config in Web Deploy output

By default when publishing a Web project using MSBuild/Visual Studio the config transforms are applied. I would like to include the config transforms within the output. Input web.config web.Debug.config web.Release.config Default…
uniquelau
  • 1,248
  • 14
  • 22
2
votes
0 answers

Can Octopus Output variable be decalred in form of an array?

I am using Octopus for getting my environment ready with all prerequisites. In one of the octopus step I want some varaibles values to be set dynamically for which I have used the octopus output variables. If I want to declare the output variable in…
2
votes
2 answers

Installing IIS as a step in Octopus Deploy

I'm trying to add a step to my Octopus Deployment that will install IIS if it isn't installed on the target, but I can't find anything. If there isn't anything in place at the minute, is there a powershell script that I can use that will add the Web…
Lloyd Powell
  • 18,270
  • 17
  • 87
  • 123
2
votes
0 answers

Topshelf Windows Service Installation Never Finishes

I have three windows services all created using TopShelf. All three are configured very similarly, so I updated my three projects to use a shared framework type project. public void StartService() { HostFactory.New(x => { …
bearDog
  • 31
  • 3
2
votes
1 answer

Rails Octopus Gem - Log which database queried

Does anyone have a way to check which database is being queried from ActiveRecord using Octopus Gem? I want to check whether the read requests are actually hitting slave database and not master database.
Sushma Satish
  • 2,363
  • 2
  • 20
  • 23
2
votes
1 answer

Octopus deploy, I need to deploy all packages up till latest on promotion to QA

Here is the story, I am using RedGate SqlCompare to generate update scripts for my Dev env, each package contains only changes from current Dev version to Latest in source control. Here is an example: I create a table (package-0.1) -> Deploy to…
Ihor Bats
  • 169
  • 1
  • 12
2
votes
1 answer

Rails: Issues while using Octopus Gem for database sharding

I am using Octopus gem to handle database sharding in my application. I have a master and a slave. The insert query always hits the master and the read goes to slave. But I am facing a weird issue like, after inserting a record and when I try to…
Ganesh S Bhat
  • 197
  • 1
  • 10
2
votes
1 answer

Powershell execution in Octopus

I have a powershell file test.ps1 which takes 3 parameters. I am trying to call/execute this file from a script step/task in octopus. Can I do this, if I can how to achieve this. I tried a few things to achieve this. Use a batch file (test.bat)…
Immortal
  • 1,233
  • 4
  • 20
  • 47
2
votes
2 answers

How to install TDS generated .update packages in Sitecore 7.2?

In setting up Sitecore 7.2 at my organization for our public facing .com I have run into a hiccup while trying to implement proper CI, Release Management, and Deployment Management. I am able to, using MSBuild, compile my Sitecore MVC code, compile…
2
votes
0 answers

using octopus with controller specific on heroku

I have just started to use the octopus gem with rails, i tried like for the normal case octopus: replicated: true fully_replicated: false environments: - development development: shard_one: host: localhost adapter: postgresql database:…
Developer
  • 561
  • 7
  • 29
2
votes
0 answers

octopus_establish_connection not working with Inherited class

I am using Octopus 0.8.0 gem and rails version 3.2.16 version. I have 2 models as follows class A < ActiveRecord::Base self.abstract_class = true octopus_establish_connection("non_default_db") end class B < A end If I look at A.connection_config it…
Mathrails
  • 89
  • 2
  • 7
2
votes
1 answer

How to get Database Connection for Octopus shard?

I am using the Octopus gem to do DB sharding in Rails. How do I get the database connection specific to a shard. For example, I have a shard named "new_db" that I specified in my shards.yml. How do I get the db connection for it? The raw connection.…
Henley
  • 21,258
  • 32
  • 119
  • 207
2
votes
1 answer

Programmatically creating shards.yml?

I'm using Octopus to separate the reads and writes of my Rails application. I have the configuration for the whole application in a JSON file and a wrapper class for ease of access. Now I'd like to configure octopus' slave connections by generating…
Rip-Off
  • 358
  • 1
  • 4
  • 14
2
votes
1 answer

Can Octopus keep a pool of database connections?

We switched to using Octopus for sharding in our rails2.3/postgresql/resque app because we were maxing out the disk I/O of our database server. We have ten databases, each with multiple shards. (A shard includes a schema search path). Some of our…
Tommie Jones
  • 957
  • 1
  • 16
  • 37
1
vote
1 answer

Store and read a private key in appsettings.json

We are not allowed to store private keys in our repository so we place it in octopus and replace it in it. We use the key to connect with an external sftp server Copying the value to octopus I loose the line feed character LF. When I read and use it…
user278618
  • 19,306
  • 42
  • 126
  • 196
1
2
3
9 10