profile
viewpoint
Mingan mingan @EnerfisTeam Prague, Czech republic http://mingan.name

mingan/goif 2

Tool to format Go imports into groups (stdlib, your namespace, others)

mingan/sparql-trimming 2

General SPARQL query for trimming string literals. Intended as a configuration for UnifiedViews SPARQL Transformer DPU.

mingan/lessphp 1

LESS compiler written in php

mingan/li3_less 1

real-time less parser for the most rad php framework, lithium

mingan/lithium 1

Lithium is a light, fast, and highly configurable framework for PHP 5.3+.

mingan/Todo 1

Aplikace pro testování Pagoda Box v rámci bakalářské práce

mingan/awesome-elm 0

A curated list of useful Elm tutorials, libraries and software. Inspired by awesome list. Feel free to contribute. :rocket:

mingan/business-entity-linker 0

DPU for deduplication of business entites using Silk

fork piotrmurach/rubocop

A Ruby static code analyzer and formatter, based on the community Ruby style guide.

https://docs.rubocop.org

fork in 9 days

fork piotrmurach/hammerhead

Generate status reports from Harvest time sheets

https://juicyparts.com/hammerhead

fork in 9 days

startedpiotrmurach/tty-runner

started time in a month

issue commentbenmanns/goworker

It's graceful, but how to optimize cpu usage?

@chaos0108 Please use IntervalFloat instead of Interval, because it set Interval by IntervalFloat in Init(). And the unit of IntervalFloat is Second.

chaos0108

comment created time in a month

created repositorypiotrmurach/tty-runner

A command routing tree for terminal applications

created time in a month

PR closed benmanns/goworker

Add support for Redis-Sentinel

Redigo doesn't support Redis-Sentinel directly, but "github.com/FZambia/go-sentinel" is linked in the related projects (https://github.com/garyburd/redigo#related-projects)

To aid things such as specifying passwords or databases for the sentinels, a new RedisSetting struct has been created. This can hold information such as Host or Database so that parsing a URI is not a requirement.

The URI option has been left in on the WorkerSettings for backwards compatibility

Tests have been updated so that we can individually test each connection

+288 -42

11 comments

6 changed files

doliveirakn

pr closed time in a month

pull request commentbenmanns/goworker

Add support for Redis-Sentinel

This PR got really stale and I'm not sure how to get it back up to date. We no longer require this functionality so I'm going to close this PR.

doliveirakn

comment created time in a month

startedjuicyparts/hammerhead

started time in a month

issue commentbenmanns/goworker

It's graceful, but how to optimize cpu usage?

package main

import ( "fmt" "github.com/benmanns/goworker" "log" "sso-api/config" "strconv" )

//func myFunc(queue string, args ...interface{}) error { // log.Printf("From %s, %v\n", queue, args) // return nil //}

func callbackUrl(queue string, args ...interface{}) error { log.Printf("From %s, %v\n", queue, args) return nil }

func init() { _ = goworker.Init() settings := goworker.WorkerSettings{ URI: config.Goworker.GoworkerRedisUri, Connections: 50, Queues: []string{config.Goworker.GoworkerQueueName}, UseNumber: true, ExitOnComplete: false, Concurrency: 2, Namespace: config.Goworker.GoworkerNamespace, Interval: 1000000000, } goworker.SetSettings(settings) //goworker.Register("MyClass", myFunc) goworker.Register("Callback", callbackUrl) }

func main() { if err := goworker.Work(); err != nil { fmt.Println("Error:", err) } }

chaos0108

comment created time in 2 months

issue openedbenmanns/goworker

It's grateful, but how to optimize cpu usage?

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
489 chaosii 20 0 1110252 17164 12524 S 54.2 0.1 1:38.45 background_work

created time in 2 months

startedjuicyparts/hammerhead

started time in 2 months

issue openedbenmanns/goworker

etcd support

Hi,

Is it planed to support etcd ? I guess a common interface with Redis could be use and this would be useful for cloud-native applications that uses etcd for both cache and configuration. What do you think?

Thanks

created time in 2 months

startedslowbro/camera-capture

started time in 2 months

startedAndyObtiva/rvm-tui

started time in 3 months

startedAndyObtiva/rake-tui

started time in 3 months

more